How can I access my localhost server from other computers?

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

    You could just tinker around the firewall. I found that the inbound and outbound rules were blocking all public network traffic (that is, all traffic to my router which is seen as public, even though it has a password) and proceeded to check the box to allow traffic on a public network (both inbound and outbound) for all the rules bearing the Apache name. Also, I did turn on the mySQL server, but that shouldn't do anything at all in this matter (though life has surprised me like this before where something insignificant turned out to be quite significant in the end, so I would do this as a last resort, but unlikely). Also, I think this should work at least over the same WiFi network (and I know that's a part of LAN, but just to clear up any ambiguity) since I only tested with my Android phone (oh how I wish I had a Windows Phone). Hope this of any use to anyone!

提交回复
热议问题