Hi guys, was wondering if there was a way that i could change my webserver ip adress (eg. 192.456.43.2) to something on my network only like http://localsite i have seen it done before but not sure about how to go about doing it
127.0.0.1 or localhost will refer to the loopback of the default network card of the PC there on, So if you go to http://localhost you will go to the default website of the PC our currantly using.... is that what you mean?? Other than that you'd need to edit all your host files if you wanted localsite to point to something specific..... Oh and 192.456.43.2 isn't a valid IP address (your not alloud numbers bigger then 255
He prob means 192.168.x.x as thats what most home systems use... is your webserver running on windows?
yer i was just using that ip as an example don't really no mutch about ip's. i am running an windows server and i want to acced an html file on the server kinda like an intrantet i have seen it done before but not sure about how to go about doing it will it work if i type http:// and then the name of the server eg. http://server cheers
You can edit your hosts file (search for hosts from start menu) and add like: 127.0.0.1 localhost 192.168.0.123 websitename You'd have to do this on all your lan pcs that you want to access the page like that. Alternativly if you run your own dns server, you can setup a record to point to it.