Can connect to WAMP server from Android tablet, but not from another PC
Posted by: DroidifyDevs (---.washdc.fios.verizon.net)
Date: November 03, 2016 02:50AM

Hello,

So I just finished setting up my WAMP server. I can access it from the PC I'm using for the server, and from my android tablet. However, when I try to access it from another laptop on my network, the browser says it can't find the server.

All of the devices are on the same network, so why can my tablet access the site, but my other laptop can't?

I'm using WAMP 3.0 (latest version) and the light is green.

In the future I'd like to have a simple website on this WAMP setup, so this is quite a setback.

Thank you for any ideas.



Edited 1 time(s). Last edit at 11/03/2016 02:52AM by DroidifyDevs.

Options: ReplyQuote
Re: Can connect to WAMP server from Android tablet, but not from another PC
Posted by: Otomatic (Moderator)
Date: November 03, 2016 09:50AM

Hi,

Use VirtualHost : The need for Virtual Host then for the VirtualHost you need access from outside, replace Require local by Require all granted.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Can connect to WAMP server from Android tablet, but not from another PC
Posted by: DroidifyDevs (---.washdc.fios.verizon.net)
Date: November 03, 2016 05:55PM

I created a virtual host, but I still can't access from my other laptop.

I noted that Chrome and IE load the site, but Microsoft Edge says that the server wasn't found.

After creating a virtual host, is there any other step I might have missed?

Thanks for your help.

Options: ReplyQuote
Re: Can connect to WAMP server from Android tablet, but not from another PC
Posted by: DroidifyDevs (---.washdc.fios.verizon.net)
Date: November 03, 2016 06:55PM

Also, according to this: [www.techrepublic.com]

A virtual host will do this: mysite.localhost.com

But I'd like to have mysite.com

Also the issue seems to be only with Microsoft Edge on another computer on the same network. However I can't access the site from any proxy server site, so I have the feeling that it isn't availaible to computers on other networks.

Could you try going to [192.168.1.2] from your computer?

Options: ReplyQuote
Re: Can connect to WAMP server from Android tablet, but not from another PC
Posted by: Otomatic (Moderator)
Date: November 03, 2016 07:37PM

Hi,

[192.168.1.2] is a local IP, not a WAN IP.

I have device with [192.168.1.2] IP on my own network.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Can connect to WAMP server from Android tablet, but not from another PC
Posted by: DroidifyDevs (---.washdc.fios.verizon.net)
Date: November 03, 2016 07:52PM

I see, is this a WAN IP? [127.0.0.1]

Can you think of any reasons as to why my tablet and laptop can access the site with any browser but Microsoft Edge, and a proxy server site can't?

I'm not new to computers at all, actually I'm a game developer which is why I'm interested in this WAMP server; so I can try out ways to store game data online.

Thanks for your help.

Options: ReplyQuote
Re: Can connect to WAMP server from Android tablet, but not from another PC
Posted by: Otomatic (Moderator)
Date: November 03, 2016 08:49PM

Hi,

I'll answer tomorrow (French time) because I write with my Smartphone and it is not very easy to write long explanations.

The PC is in full backup.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Can connect to WAMP server from Android tablet, but not from another PC
Posted by: Otomatic (Moderator)
Date: November 04, 2016 10:00AM

Hi,

All IP ranges
- 10.0.0.0 to 10.255.255.255
- 127.0.0.0 to 127.255.255.255
- 172.16.0.0 to 172.31.255.255
- 192.168.0.0 to 192.168.255.255
are local (or private) IP. See [en.wikipedia.org]
and can never be accessed directly from the outside (Internet).
It must pass through a router with NAT (Network address translation): see [en.wikipedia.org]

> but Microsoft Edge
Microsoft, in its wisdom, and for the safety of its users and security reasons, has, basic, prohibits local site access with Edge. (Bullshit !)

To enable loopback and debug your localhost server, launch Edge and type in the address bar : about:flags then there are some options like this:
Quote
Edge
Developer Settings

X Use the Microsoft Compatibility Lists
X Allow localhost loopback (this may expose your device to risks)
These two options must be checked.

In very rare cases, it does not work, but you can try something else:
- Open a command window - as administrator
(There must be the word "administrator" in the title of the window)
In this command windows, type:
CheckNetIsolation LoopbackExempt -a -n="Microsoft.MicrosoftEdge_8wekyb3d8bbwe"

> and a proxy server site can't?
Because IP "output" of the proxy is not fixed.
So instead of allowing an IP range for a VirtualHost example
Require ip 168.192.0
must authorize all, so
Require all granted

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Can connect to WAMP server from Android tablet, but not from another PC
Posted by: DroidifyDevs (---.washdc.fios.verizon.net)
Date: November 04, 2016 12:51PM

Wow, thanks for that help. Now I understand why the site isn't accesable from the rest of the world; I have a local IP address.

So since I'm using a local IP, how can I find (or make) a public IP so the rest of the world can access my site?

Putting in my PC's IP address simply loads my router login page, so it must be something else.

Thank you, sorry for the pain. It's my first time setting up a WAMP server.

Options: ReplyQuote
Re: Can connect to WAMP server from Android tablet, but not from another PC
Posted by: DroidifyDevs (---.washdc.fios.verizon.net)
Date: November 04, 2016 02:02PM

This says I need port forwarding: [www.simonewebdesign.it]

But it still uses my local IP address, so it probably won't change anything.

Also I forgot my router login password so I'll need to reset it, which would be a pain if that link was correct. However I'm willing to do it.

Options: ReplyQuote
Re: Can connect to WAMP server from Android tablet, but not from another PC
Posted by: DroidifyDevs (---.washdc.fios.verizon.net)
Date: November 05, 2016 04:20PM

LOL my router login was actually the standard stuff written on a sticker on the router. Set up port forwarding, works like magic now.

Options: ReplyQuote


Sorry, only registered users may post in this forum.