How can I access my localhost server from other computers?

后端 未结 8 589
無奈伤痛
無奈伤痛 2021-01-31 05:31

I\'m new to PHP, so I don\'t know how to explain it. I\'m running WAMP on my computer and I would like to be able to access my localhost from another computer.

8条回答
  •  粉色の甜心
    2021-01-31 06:29

    @Shaun Hare explained it pretty good, however, if those computers are not in the same network (my case, when remote presentation is needed) you would also need to set port forwarding on your router and remote side would need router's public IP address.

    Basically, remote side would enter http://123.123.123.123/index.php in their browser and router would point that request (via port forwarding) to WAMP server installed at 192.168.10.10 (for instance).

提交回复
热议问题