Accessing wamp server from mobile device
Posted by: snipchain (---.dsl.scarlet.be)
Date: July 25, 2019 03:31PM

Hi all,

I have a windows 10 64 bit
Version Wampserver 3.1.9 - 32bit
Version Apache : 2.4.39
Server Software : Apache/2.4.39 (Win32) OpenSSL/1.1.1b PHP/7.2.18 - Port défini pour Apache : 80 - 8001 - 8090
Version de PHP : 7.2.18
Version de MySQL : 5.7.26 - Port défini pour MySQL : 3306 - Default DBMS
WampServer icon is green

active lines in c:\Windows\System32\drivers\etc\hosts:

127.0.0.1 localhost
::1 localhost

0.0.0.1 mssplus.mcafee.com
127.0.0.1 rdt.local
::1 rdt.local

127.0.0.1 btf.local
::1 btf.local

127.0.0.1 rdt
::1 rdt

127.0.0.1 btf
::1 btf

I have access to localhost on my desktop
I have access to phpMyAdmin
I have windows defender
The full path to the installation of WampServer is C:\wamp\

In httpd.conf, I have added (line 71):
Listen 0.0.0.0:8090
Listen [::0]:8090
Listen 0.0.0.0:8001
Listen [::0]:8001

In httpd-vhosts.conf, I have those lines:
# Virtual Hosts
#
<VirtualHost *:80>
ServerName localhost
ServerAlias 192.168.1.33
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>



#
<VirtualHost *:8090>
ServerName rdt
DocumentRoot "c:/wamp/www/rdt"
<Directory "c:/wamp/www/rdt/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>


#
<VirtualHost *:8001>
ServerName btf
DocumentRoot "c:/wamp/www/btf"
<Directory "c:/wamp/www/btf/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

Include conf/extra/httpd-vhosts.conf in httpd.conf is uncommented

And I did a DNS restart

I have a Huawei nova - android chrome mobile device

I did an ipconfig in cmd to get the ip adress i need to use on my phone...

But still, I can't even get the localhost, wampserver homepage on my mobile under my 192.168.1.33 url...

Any idea what can i do to make it work? I'm just out of any idea...

Thanks much!



Edited 4 time(s). Last edit at 07/25/2019 03:55PM by snipchain.

Options: ReplyQuote
Re: Accessing wamp server from mobile device
Posted by: Otomatic (Moderator)
Date: July 25, 2019 05:58PM

Hi,

> In httpd.conf, I have added (line 71):
> Listen 0.0.0.0:8090
> Listen [::0]:8090
> Listen 0.0.0.0:8001
> Listen [::0]:8001

Do not add Apache listening ports manually, use the tool integrated in Wampserver.
Right-click -> Tools -> Add an Apache Listen port

And create your VirtualHost with the integrated Wampserver tool : Wampserver 3 - Create or add a VirtualHost

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

Options: ReplyQuote
Re: Accessing wamp server from mobile device
Posted by: snipchain (---.dsl.scarlet.be)
Date: July 25, 2019 06:39PM

Hi,
Same result, it's even not listening port 80... :/

Options: ReplyQuote


Sorry, only registered users may post in this forum.