CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Peter's Gekko

public Blog MyNotepad : Imho { }

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


Published Jan 06 2005, 09:18 AM by pvanooijen
Filed under:

Comments

Stephen Bridgett said:

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
# May 6, 2006 7:51 PM

pvanooijen said:

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
# May 8, 2006 3:29 PM

Peter's Gekko said:

Mobile apps make great consumers for a webservice. But debugging such a scenario can be hard to set up....
# July 11, 2006 4:06 AM

Leave a Comment

(required)  
(optional)
(required)  

Enter the numbers above:
Add
Check out Devlicio.us!