Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 can we access the site hosted on same wifi

views
     
Eventless
post Mar 28 2021, 08:10 PM

Look at all my stars!!
*******
Senior Member
2,643 posts

Joined: Jan 2003
QUOTE(Grammar Police @ Mar 27 2021, 10:58 PM)
I read on internet that if i turn my pc or mobile into a web server , such as xampp , laragon or kwp

if i have another device connected to the same wifi, it should also be able to connect to that site

however i tried using pc AND android mobile to host a site and both device cant connect to each others server on the same wifi

i troubleshoot by checking ip, nothing wrong with the ip and port i used

also turned off the firewall and created inbound rule, didnt work, still cant access

am i doing anything wrong or the article i read is bullshitting?
*
Are you trying to access the webserver internally or externally?
Internally means using a your lan/wifi without going through the internet using a private ip address range. Externally means using your public ip address or DNS name to connect to your webserver.

If internally you should be able to access the webserver using its internal ip address(192.168.x.x, 10.x.x.x). No changes required at the firewall at the router. Just need the necessary inbound rules at the web server.

If both of your devices is using wifi to connect to each other, it is possible that you wifi access point is configured to block wifi to wifi communication. If you can't ping each other, it is possible that it is blocked either by the access point or the firewall within the devices.

For connecting from the outside, you will to do some port forwarding on your router. Best to test using a different internet connection since not all routers allow traffic from the same internal network to come back in via port forwarding. It may work with newer routers so results may vary.

Also if your ISP doesn't provide you with a public IP address, you won't be able connect to your webserver from the internet.

Eventless
post Mar 28 2021, 10:30 PM

Look at all my stars!!
*******
Senior Member
2,643 posts

Joined: Jan 2003
QUOTE(Grammar Police @ Mar 28 2021, 08:17 PM)
internally. i saw the ip is  192.168.1.34 on ipconfig in cmd
*
So you will not be accessing the web server from the internet. It will all be done through your existing lan/wifi network. The router is out of the picture in this scenario.

Can the web server be pinged by the other computers on your network? You can try to disable the firewall on the target(web server) computer to simplify things for testing.

 

Change to:
| Lo-Fi Version
0.0137sec    0.47    6 queries    GZIP Disabled
Time is now: 25th November 2025 - 04:15 AM