how to get website to see website other than localhost

phillydog

Senior member
Dec 19, 2001
472
0
0
From my win/2003 box, I can only see the website using http://localhost and not using the web address that the world (external of my firewall) can see.

Prior to WIN/2003 SP1, I edited my \WINNT\SYSTEM32\DRIVERS\ETC\HOSTS file to include:

www.myserverhere.com 127.0.0.1

and this resolved my issue.... but now, when I go to the external web address from the box itself, it brings me to my router page....

any advice would be appreciated.
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Have you ever actually been able to access this site from outside your firewall? Is that what you're trying to do?

Have you got port 80 open on the firewall, and, if it's NAT, have you forwarded that port to your server?
 

phillydog

Senior member
Dec 19, 2001
472
0
0
Originally posted by: phillydog
From my win/2003 box, I can only see the website using http://localhost and not using the web address that the world (external of my firewall) can see.

Prior to WIN/2003 SP1, I edited my \WINNT\SYSTEM32\DRIVERS\ETC\HOSTS file to include:

www.myserverhere.com 127.0.0.1

and this resolved my issue.... but now, when I go to the external web address from the box itself, it brings me to my router page....

any advice would be appreciated.

I am able to view my site outside of the firewall using a URL with a real host name.... when I use this real host name within my firewall, it brings up my router configuration screen, rather than my website.

If I use 'localhost' as the host name within my firewall, all is okay, but I would prefer not to use that.
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
There's a technical term for this which completely escapes me. Your router needs to support access to it's wan interface from the lan interface, not all can do it.

But back to the hosts file, you had obviously solved this before the service pack. Now the url is not resolving to localhost like you want, but is actually going and doing the dns lookup from the outside world. Is the entry still in your hosts file after the service pack? I suppose if you ping your domain name, it'll use the external ip? I think that's what you've got to fix somehow.
 

phillydog

Senior member
Dec 19, 2001
472
0
0
A friend just pointed out that I had:

dd 127.0.0.1

rather than:

127.0.0.1 dd

Damned spyware changed the format of my file... it now has 'write deny' access for all users and is fine now.

Thanks all for your help.