LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-23-2019, 12:08 PM   #1
jeenuv
LQ Newbie
 
Registered: Aug 2014
Location: Cambridge, UK
Distribution: Linux Mint 20.1
Posts: 22

Rep: Reputation: Disabled
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.

Where shall I start to figure/fix this?

Thanks in advance.
 
Old 06-23-2019, 01:26 PM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,767

Rep: Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765
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?
 
1 members found this post helpful.
Old 06-23-2019, 01:44 PM   #3
jeenuv
LQ Newbie
 
Registered: Aug 2014
Location: Cambridge, UK
Distribution: Linux Mint 20.1
Posts: 22

Original Poster
Rep: Reputation: Disabled
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.

Last edited by jeenuv; 06-23-2019 at 01:45 PM.
 
Old 06-23-2019, 01:46 PM   #4
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,842

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
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.
 
1 members found this post helpful.
Old 06-23-2019, 03:23 PM   #5
jeenuv
LQ Newbie
 
Registered: Aug 2014
Location: Cambridge, UK
Distribution: Linux Mint 20.1
Posts: 22

Original Poster
Rep: Reputation: Disabled
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.


Thanks.
 
Old 06-24-2019, 02:53 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
Some routers don't allow wifi clients to interact?? I saw one like that. No way to enable it.
 
Old 06-24-2019, 10:19 PM   #7
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,767

Rep: Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765
Quote:
Originally Posted by jefro View Post
Some routers don't allow wifi clients to interact?? I saw one like that. No way to enable it.
Sounds like a VERY good reason for running your own router, instead of the one supplied by the ISP.
 
Old 07-14-2019, 12:40 AM   #8
jeenuv
LQ Newbie
 
Registered: Aug 2014
Location: Cambridge, UK
Distribution: Linux Mint 20.1
Posts: 22

Original Poster
Rep: Reputation: Disabled
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.

All of them can access the router admin portal http://192.168.1.1.

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.

Thanks in advance.

Last edited by jeenuv; 07-14-2019 at 12:42 AM.
 
Old 07-14-2019, 01:11 AM   #9
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,842

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
Can you confirm that client isolation is disabled in the Linksys router?

Also, check that your server (laptop) firewall is not active.

Perform an nmap scan of the laptop's IP address from the Chromebook (or Android) host...

Code:
sudo nmap 192.168.1.107
* You may need to install the application in these devices first.

Last edited by ferrari; 07-14-2019 at 01:13 AM.
 
1 members found this post helpful.
Old 07-14-2019, 01:41 AM   #10
jeenuv
LQ Newbie
 
Registered: Aug 2014
Location: Cambridge, UK
Distribution: Linux Mint 20.1
Posts: 22

Original Poster
Rep: Reputation: Disabled
Ugh, this is embarrassing: it was the firewall indeed. I didn't know it was there. Gufw came installed by default on Linux Mint.

After all this hair pulling, it's deflating to realize I missed something so simple.

Worse, looking back at this thread, wpeckham hinted at this earlier. I don't know how missed it - perhaps a typo on the search menu. Such a shame.

Thanks for your help. I've now have some beating up myself to do.
 
Old 07-14-2019, 02:30 AM   #11
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,842

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
Yes, a couple of us had already suggested it.

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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I want few users which is in aliases can send mail to each other but not other mail users in postfix Chitra Gurung Linux - Server 4 07-07-2016 01:26 PM
make multiple folder on samba linux & each folder can be access each person only Aneesh.T .S Linux - Server 1 01-31-2013 06:01 PM
Two MCE remote controller of same brand next to each other patrick295767 Linux - Hardware 1 06-30-2012 08:51 AM
Two distros on same HD: can they see each other? xri Linux - Newbie 3 03-26-2005 07:40 PM
can't see other machines but they can see each other Silly22 Linux - Networking 1 11-20-2002 03:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration