Jump to content

If you are trying to connect to a service, e.g. a web server on port 80 running locally on a computer by typing localhost into your browser, it's connecting to http://localhost:80/, rather than \\localhost, which would be the address of the other PC on the network.

 

The PC  'name' is only really used for OS integrated file and printer sharing as far as I know, if you were trying to access a service on the network you'd be using the other PC's IP address anyway.

 

However I have never tested this (and I can't really see why anyone would have xD)

 Almost as cool as my temps  

Link to post
Share on other sites

As far as I've noticed, Windows seems to look up "localhost" the way it looks up everything else at the DNS server.

 

I made a chat a couple years ago using PHP, MySQL and JS/AJAX, but hosting it on Windows gave a ~3 seconds delay; After adding localhost to the hosts file, it went butter smooth and instant.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×