Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I access localhost from another computer in the same network? [duplicate]

I just recently downloaded WAMP Server to view and edit php webpages but now I would also like other people in my network (connected to the same wifi) to be able to access localhost and all the files that I have saved. I have already tried to access localhost and my WAMP server was already online, however that didn't work. Can someone help me out? Thanks in advance!

like image 642
user2735791 Avatar asked Oct 20 '13 20:10

user2735791


People also ask

How can I access localhost from another computer on the same network?

Provided both machines are in the same workgroup, open cmd.exe on the machine you want to connect to, type ipconfig , and note the IP at the IPv4 Address line. E.g http://192.168.0.1:80 if your site runs on port 80. That should do it.


1 Answers

You need to find what your local network's IP of that computer is. Then other people can access to your site by that IP.

You can find your local network's IP by go to Command Prompt or press Windows + R then type in ipconfig. It will give out some information and your local IP should look like 192.168.1.x.

like image 195
Tri Hoang Avatar answered Oct 23 '22 13:10

Tri Hoang