[SOLVED] Devices on the same WiFi network can't access each other
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Devices on the same WiFi network can't access each other
As subject, I've more than one of my device using my home WiFi network.
I started a simple web server on my Linux laptop (python3 -m http.server), but pointing web browser at it from a Chromebook just waits forever. Later I also found that I'm unable to ssh into my laptop from the Chromebook either, although there's an SSH server listening on the laptop.
The Chromebook and laptop can ping each other using their 192.168.1.x addresses. But it seems that they're not able to access each other.
To be clear, the linux laptop can http to itself using its 192.168.1.x address, and you can ssh from the box to itself using ssh 192.168.1.x, and both machines can ping the 192.168.1.x interface for that box? Have you checked the listeners on that box? Is there a firewall running on that box?
Linux laptop can both HTTP and SSH to itself. And both machines can ping to its self 192.168.1.x address.
My Linux laptop doesn't have any firewall installed. Chromebook is vanilla except in developer mode, although I'm not sure, I dare guess that it doesn't have any firewall installed.
My Android phone also connects to the same network, but can't HTTP to the laptop either.
Check any firewalls that may be active on the affected hosts. It is also possible that wireless/client isolation is set on the AP router. That might prevent connected hosts from having visibility of each other's services.
Never knew about this client isolation thing, but sounds like that might be. I coudln't find any relevant settings on the router, so will contact Vodafone UK. I'll post once I've an update.
I had a back and forth between Vodafone UK, and they swear their router isn't at fault here.
To test whether my devices are at fault here, I got a Linksys wireless router, had it reset to factory settings, and turned it on. This router has has no internet connection - just standalone WiFi. I then had all wireless security and firewall disabled. This has a DHCP server running, so all my devices (Laptop, Chromebook, and Android phone) could connect to the WiFi right away - they all got IP addresses like 192.168.1.*. To clarify, the ISP-provided router is not involved at all; this was a freshly rolled-out WiFi hosted by the Linksys router.
It had me dumbfounded that none of my device were still able to see each other! They however were able to ping.
Neither Chromebook (via crosh > ssh) nor Android (via Terminus application) could SSH into my laptop. The laptop does run an SSH server at port 22.
To further rule out any foul play, I launched Linux user space on Chromebook via crouton, and tried ssh - still the same story.
As another test, I started a python3 web server on the laptop: python3 -m http.server --bind 192.168.1.107 80
(192.168.1.107 was my laptop's IP).
Not surprisingly, the laptop was able to access itself using http://192.168.1.107:8000. But none of the other devices could.
At this point, my brain starts to hurt. For all I know, this ought to work out of the box. Please could someone suggest what might be going wrong here? I'm happy to share any details you need.
Anyway, always good to read of a successful outcome, and I’m sure that you learned from it. It happens to us all, so don’t beat yourself up for being human. Learning often involves making mistakes.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.