WAMP只会在使用会话时加载到localhost

I am using WAMPSERVER 3.1.3 64Bit windows 10, whenever I try to load a page that uses sessions and I am not in localhost, it will not load and give me ERR_CONNECTION_TIMED_OUT. Whenever a page without sessions is loaded from an outside source it will work fine and redirect until I log in (at which point it starts using sessions) and then refuse to connect. Because it will load fine on localhost but not from an outside source I believe it is a problem with WAMP. If anyone could please give feedback on the possible causes for this problem it would be greatly appreciated.

When I loaded from an outside source , that source was still on the wifi network that was being used to host the site. I realized the error only occurs on devices on the network and was neither a problem with PHP or WAMP.