How can I access my localhost server from other computers?

后端 未结 8 581
無奈伤痛
無奈伤痛 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:28

    Yes if they are on the same network, simply target the computer's IP address and ensure anything on either computer that would block access to port 80 (firewalls) is off

    0 讨论(0)
  • 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).

    0 讨论(0)
提交回复
热议问题