« Previous Next »

Thread: Websites Using Internal IP

Last post 06-18-2009 11:15 AM by Jamiej831. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 06-17-2009, 7:41 PM

    Websites Using Internal IP

    I think this is an issue with IIS, hopefully we'll find out.  Here's my issue:

    Setup:

    My server is setup with a private IP address.  My firewall is set to use 1-to-1 NAT to connect my internal with a public IP address.  I've then setup a DNS record for the public address.  The server is running 2003 R2.

    Problem:

    When I access via the dns or public IP, it tries to resolve over to the private IP.  If I remove the default document (index.php) and connect (get a list of files on the root of the site), it keeps the correct IP/DNS name, until I click on a link from that page (linke index.php).  I can conenct via the public IP off our network through other services (tested with RDP over 3G network).  Not too sure what I'm doign wrong here.  

  • 06-17-2009, 9:59 PM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 4:18 AM
    • Shanghai, PRC
    • Posts 1,402

    Re: Websites Using Internal IP

    I don't understand your problem description well, so it is recommended that you answer my following questions below. Besides, you can try to narrow down the problem.

    1. Do the web sites work internally if you navigate to them on another internal machine? If so, then IIS is working without a problem and you don't need to change it.

    2. Are you sure you have everything configured on your firewall/gateway correctly? For such networking questions, as they are out of scopes of this IIS forum, you'd better consult a network expert (for example, vendor of the firewall).

    RDP has no relationship with IIS, so RDP works does not mean IIS can work (vice versa)

    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 06-18-2009, 10:04 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Central NJ
    • Posts 6,221
    • IIS MVPs

    Re: Websites Using Internal IP

    Since you can connect correctly without requesting a PHP, file this sounds like a PHP configuration issue.  I have moved to the appropriate forum ...

  • 06-18-2009, 11:15 AM In reply to

    Re: Websites Using Internal IP

     Thanks guys, very well could be an issue with PHP.  To better describe issue

    The site works fine internally, if we use the internal IP address for the machine.  If we attemtp to conenct from the outside of the network either by external IP address or by dns address it will time out as it instantly changes to the internal ip address.  One-to-One seems to be working, I can connect to the server via RDP from the outside using both DNS and Public IP. 

Page 1 of 1 (4 items)
Microsoft Communities