Unable to connect to a locally hosted site from my smartphone (Android) and or tablet (Ipad)

Discussion in 'Apache' started by Enzo55, Oct 29, 2018.

  1. #1
    Hello,

    I have been blocking for a few hours on the following issue: for reasons of local testing of a website in dev, I can't access it from my smartphone and/or my tablet (Ipad). Both are on the same network, as are two other PCs, including 1 IOs and 1 Ubuntu, which are successfully connecting to the site. On the other hand, with the two mobile tools, I only manage to access the Apache server's conf page. Access to the site systematically results in an error:"...cannot open the page because the connection to the server is impossible".

    What I've done so far:

    - The two PCs, on which their /etc/hosts file has been filled in with the destination IP (PC that hosts the site), connect without difficulty.

    - the virtual host conf file (httpd-vhosts.conf) does contain a virtual host that points to the site folder and to which the other two PCs (Ios and Ubuntu) can access without problems.
    - the hosts file of the PC that hosts the WAMP server and therefore the site is filled with the @IP localhost followed by the same IP for the virtual host.
    - the httpd.conf file contains "Require all granted" placed in the right place in the file ("Controls who can get stuff from this server.").
    - the site is online
    - services have been restarted several times.

    Each time I attempt to connect either mobile device (iPad/Smartphone), the Apache server access logs mention "GET /my project/ HTTP/1.1" 302". I checked on the Internet, this code would correspond to a "page temporarily moved".

    Finally, I tried a port forwarding on my Internet box and from my 3G smartphone, I get the same result: "This site is inaccessible. localhost does not allow the connection." On the other hand, I manage well on the Apache server's conf page.

    Environments :

    WAMP 3.1.4 server installed on a PC running under WIN10(64)
    Apache v2.4.35
    PHP: 7.1.22


    I'm drying out completely... if one of you could explain to me why access is not from this tablet or smartphone, I'm a taker and thank you in advance.

    Enzo
     
    Enzo55, Oct 29, 2018 IP