Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Other Development Tools
 Localhost works, but not IP

Author  Topic 

dzach
Starting Member

38 Posts

Posted - 2006-11-30 : 13:14:02
I have some ASP pages I'm developing and they all work fine if I use https://localhost/file.asp, but they don't work when I use 127.0.0.1/file.asp. Also, other workstations can't access the asp files across the LAN as well. I originally thought this was a connection string issue, but that's not the case here. Also, I can use https://machinename/file.asp from the IIs server and that works as well.

Suggestions?

Thanks!

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2006-12-13 : 08:27:23
well it depends on the IP address of

1. your server which in this case is your workstation
2. The IP address set in your IIS MMC snap in

run an IP address test on command prompt, type ipconfig/all
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2006-12-13 : 09:01:09
LOCALHOST and IP 127.0.0.1 are reserved Name and IP-address, and are always evaluated to the local machine.


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

jsmith8858
Dr. Cross Join

7423 Posts

Posted - 2006-12-13 : 09:02:26
quote:
Originally posted by dzach

I have some ASP pages I'm developing and they all work fine if I use https://localhost/file.asp, but they don't work when I use 127.0.0.1/file.asp. Also, other workstations can't access the asp files across the LAN as well. I originally thought this was a connection string issue, but that's not the case here. Also, I can use https://machinename/file.asp from the IIs server and that works as well.

Suggestions?

Thanks!



As always, please define "doesn't work". page not found? error messages? app works but not well? database connections don't work? etc.

- Jeff
Go to Top of Page

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2006-12-13 : 09:47:35
quote:
Originally posted by Peso

LOCALHOST and IP 127.0.0.1 are reserved Name and IP-address, and are always evaluated to the local machine.


Peter Larsson
Helsingborg, Sweden



Hi Peter
127.0.0.1 is a loop back test IP, its reseverved for IP less machines or to ping the NIC card.

If you have a static IP address for your localhost website in the MMC snapin it wont work, maybe thats the problem

Go to Top of Page
   

- Advertisement -