curotec Posted February 15, 2011 Share Posted February 15, 2011 Hello, My name is Brian and this is my first post in this forum. I would be very happy if somebody here can help me with my problem as it is slowing down my business. I am running XAMPP (Apache Friends Edition) on a Windows XP Home Edition workstation to test my server side scripts before I launch them to the internet. I have a line of computers all for cross checking websites on a variety of different browsers and screen resolutions to ensure maximum cross compatibility. All of these computers are on the same network with the same Work Group name and they are all sharing files and a printer with no problems. I need to be able to punch in my IP address to my main PC to access the localhost and see how things look on these other PC's. I recently moved my office from one location to another and prior to the move all I had to type in the browsers of the other network pc's was 10.0.0.17. Now when I type that I get server not found. I though I set my office up the same as before and I am not experiencing any other network issues. Can somebody tell me what I may be doing wrong and how I can access my localhost on other network machines. I cannot figure this out to save my life. I also tried to type in the computers name which is Curotec-MainPC. I typed it like this: http://Curotec-MainPC/. No luck. However, one thing that may be important to note is that when you type the above address into my main workstations browser it does bring up localhost as if I typed http://localhost/ into the browser. Thank again in advanced. Quote Link to comment https://forums.phpfreaks.com/topic/227794-problems-accessing-localhost-on-other-network-computers/ Share on other sites More sharing options...
QuickOldCar Posted May 1, 2011 Share Posted May 1, 2011 Upon posting I realize this was an older thread, but I will write the solution just for the record. On each of the computers do this. go to: C:\WINDOWS\system32\drivers\etc\hosts add lines similar to this: 192.168.1.45 site.com 192.168.1.45 *.site.com in my example 192.168.1.45 would be the servers computer ip, yours can be different ranges site.com is the domain name in the run bar you can type this command to see the servers computer ip ipconfig /all Quote Link to comment https://forums.phpfreaks.com/topic/227794-problems-accessing-localhost-on-other-network-computers/#findComment-1209143 Share on other sites More sharing options...
Who8MyFish Posted May 27, 2011 Share Posted May 27, 2011 Are you using the exact same router? When moving your office your server's local IP address probably changed for one reason or another. You should be able to access your web server through the address bar of a browser using the server's local IP address. for example http://192.168.0.150 you can find your computers actual local address by opening a command prompt and typing ipconfig/all It should be listed near "IP Address........." Any computer connected to that same network will be able to access your server using that address. Quote Link to comment https://forums.phpfreaks.com/topic/227794-problems-accessing-localhost-on-other-network-computers/#findComment-1221218 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.