Peter's Gekko

Sponsors

The Lounge

News

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
Localhost, local network and sp2 (Cannot find server or dns error)

Keeping a development webserver alive is almost a daytime task for me. Blogging some the tricks I learned lead to so much responses from fellow desperates. Most of the problems are due to a lack of rights. So here is another trick.

I mainly use an XP localhost for development. To see how  the site behaves on a consumer's machine I take my wife's or the kid's XP home machine to view some pages. Since we have sp2 installed this no longer works out of the box, a request like http://Brochis/MyWebApp/ (Brochis is my VS box) would result in a “Cannot find server or dns error”. Here you bump your request agaianst the sp2 firewall. To be able to browse to a XP-pro “localhost” webserver from another machine in your local network you have to apply these settings on the webserver

  • Windows firewall
  • Exceptions
  • Add port 80
  • Set the scope to My network (subnet)

Peter


Posted 01-06-2005 9:18 AM by pvanooijen
Filed under:

[Advertisement]

Comments

Stephen Bridgett wrote re: Localhost, local network and sp2 (Cannot find server or dns error)
on 05-06-2006 7:51 PM
Hi Peter
I can't browse localhost. I can browse my local machine IP 192.186.0.142.
It's driving me nuts, any ideas?
Thanks
pvanooijen wrote re: Localhost, local network and sp2 (Cannot find server or dns error)
on 05-08-2006 3:29 PM
localhost is a local loopback which maps to the ip address 127.0.0.1

This setting is confiured in the file C:\WINDOWS\system32\drivers\etc\hosts

hth
Peter's Gekko wrote Connecting to the local network from the Smart Device emulator
on 07-11-2006 4:06 AM
Mobile apps make great consumers for a webservice. But debugging such a scenario can be hard to set up....
Faisal wrote re: Localhost, local network and sp2 (Cannot find server or dns error)
on 11-17-2008 8:41 PM

Could you resolve my problem,

I am unable to access \\localhost\ShareName, while I can access \\127.0.0.1\ShareName.

hosts file has correct entry. When I ping to localhost in cmd it resolves correctly.

Any Idaes?

Add a Comment

(required)  
(optional)
(required)  
Remember Me?