can't access local host from other pc and mobile on same network
Posted by: rajashani99 (39.32.203.---)
Date: July 19, 2016 10:53PM

Hi everyone,

I have installed my Wamp version 3.0.4 and I can't access it from other devices than the computer it is on. I would like to allow access from devices on the local network. I have tried different solutions in the httpd.conf with no effect, so I came back to its previous settings.

I haven't been able to find any solution working. My firewall is totally disabled so that it can't be the cause of the problem, and my server is online and accessible typing both localhost or its local ip address in the url bar.

I have only one virtual host which is the localhost.

I have also install and run wampserver as administrator.

I have also disable my ESET smart secuirty antivirus.

i have also port forwarding in my router setting.
i am using DLINK router my default gateway is 192.168.10.1

i am aslo using static internal ip address using tcp/ip setting
i have 192.168.10.4 ip

i also put wampserver as online and icon color is also green

If any of you have a solution for me, I'd be grateful !

Thanks in advance, and sorry if I'm just missing something stupid smiling smiley

Options: ReplyQuote
Re: can't access local host from other pc and mobile on same network
Posted by: RiggsFolly (Moderator)
Date: July 20, 2016 11:31AM

Hi

WAMPServer 3 comes with a Virtual Host setup for the localhost domain.

Edit \wamp\bin\apache\apache{version}\conf\extra\httpd-vhosts.conf

It should look like this

#
# Virtual Hosts
#

<VirtualHost *:80>
	ServerName localhost
	DocumentRoot D:/wamp/www
	<Directory  "D:/wamp/www/">
		Options +Indexes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>


Add this line

#
# Virtual Hosts
#

<VirtualHost *:80>
	ServerName localhost
	DocumentRoot D:/wamp/www
	<Directory  "D:/wamp/www/">
		Options +Indexes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local

               #<-- NEW LINE BELOW

                Require ip 192.168.10                              
	</Directory>
</VirtualHost>

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: can't access local host from other pc and mobile on same network
Posted by: rajashani99 (39.32.203.---)
Date: July 20, 2016 07:52PM

i already try it and now try it again but still can't access

plz help me :-(

Options: ReplyQuote
Re: can't access local host from other pc and mobile on same network
Posted by: rajashani99 (39.32.203.---)
Date: July 20, 2016 07:53PM

if you want any specific screenshot or access of my computer through teamviwer that i can also provide you

Options: ReplyQuote
Re: can't access local host from other pc and mobile on same network
Posted by: RiggsFolly (Moderator)
Date: July 21, 2016 11:51AM

Ok Send me a Private Message with your TeamViewer ID and PASSWORD

I am on GMT+1 and available 11:00 to 13:00 today

Or suggest another time

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: can't access local host from other pc and mobile on same network
Posted by: rajashani99 (39.32.203.---)
Date: July 21, 2016 12:34PM

according to GMT +1 it is 11:32:52 AM

and i am online for you
i have send you my teamviwer ID and password as private msg

Options: ReplyQuote
Re: can't access local host from other pc and mobile on same network
Posted by: rajashani99 (39.32.38.---)
Date: July 21, 2016 07:13PM

hello RiggsFolly finally i sloved my problem myself

but thankx alot you helped me very much


but now the new problem is form my computer i can access 192.168.10.4:81/edusec
but from my laptop on the same network it says

FORBIDDEN
you don't have permission to access /edusec on this server.

plz solve this i shall be thankful to you

Options: ReplyQuote
Re: can't access local host from other pc and mobile on same network
Posted by: rajashani99 (39.32.38.---)
Date: July 21, 2016 08:53PM

plz tell me configuration according to wamp server 3.0.5

apache 2.4.18
php 5.6.19
port 81
static ip 192.168.10.4

Options: ReplyQuote
Re: can't access local host from other pc and mobile on same network
Posted by: rajashani99 (39.32.251.---)
Date: July 22, 2016 07:07AM

yahooooooo i sloved the problem by google it

basically widows firewall and your installed anti virus was problematic while access my server on other computer

compeletly disable your antivirus firewall secuirty or better to remove your atinvirus

now you have to define inbound rule of your firewall

open firewall from control panel or start menu
click advance setting (you will find it left side)
click on inbound rule (you will find it left side)
click on create new rule (you will find it right side)
click on port and click next
click TCP
click specific port
enter you port at which your local host is running
click next
click allow connection
click next
enter any name for example (port allow rule)
click on finished

now you access you localhost or web application from another computer but on same network
i hope you will not get error of FORBIDDEN

once angain thankx to RiggsFolly and wampserver :-)

Options: ReplyQuote


Sorry, only registered users may post in this forum.