You are not logged in.

#1 2022-07-29 04:47:36

phollox
Member
Registered: 2013-05-04
Posts: 61

Connected to WiFi but no Internet

I'm in a hotel. The TV is an Android TV and I was trying to stream stuff through my VPN but the TV was not working. So I tried to get the IP of the TV from Nmap, running from my laptop. And it didn't work

However, now my laptop is connected to the Hotel WiFi but it doesn't have internet. I can ping 8.8.8.8 but nothing else

I also connected to my phone Hotspot and it's the same thing. No internet

So I broke my archbox. I'm traveling tomorrow and I can't think of how to solve this. Any help is appreciated


I divide by zero, multiple times per day. Also, I don't believe in tipping
Arch + i3wm (still learning)

Offline

#2 2022-07-29 07:11:03

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,491

Re: Connected to WiFi but no Internet

I can ping 8.8.8.8 but nothing else

You're connected to the internet - or a really mean router (bug because of the hotspot that's unlikely)
Can you ping 1.1.1.1 (cloudflare) / 9.9.9.9 (quad9)?

If you can, chances are that this is a mere dns issue and in this case:

dig google.com
dig @8.8.8.8 google.com
drill google.com
resolvectl status
stat /etc/resolv.conf
cat /etc/resolv.conf
nslookup google.com
cat /etc/nsswitch.conf

Otherwise

ip route get 8.8.8.8 # which you can ping
ip route get 1.1.1.1 # in case you can't

Offline

#3 2022-08-13 14:31:31

phollox
Member
Registered: 2013-05-04
Posts: 61

Re: Connected to WiFi but no Internet

Hi Seth. Thanks for the reply

Offline for several weeks. So getting back to this issue now.

Replying from cellphone. So hard to type back the command output. But connected to wired Ethernet and the situation is the same. I can ping to google, cloudfare and quad9

drill is saying that I'm getting an error because it can't send or receive due to network error

I don't have installed dig or nslookup

I tried the other command and was typing the output but I accidentally deleted the message on my phone (new phone)

But nsswitch was last modified awhile ago, so it shouldn't be the cause of the issue

resolv only has
nameserver ::1

And apparently was created when I booted today

This problem might have been caused by my botched install of PROTON VPN.

Last edited by phollox (2022-08-13 22:09:22)


I divide by zero, multiple times per day. Also, I don't believe in tipping
Arch + i3wm (still learning)

Offline

#4 2022-08-14 13:49:04

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,491

Re: Connected to WiFi but no Internet

So hard to type back the command output

https://wiki.archlinux.org/title/Tethering
Otherwise rather post links to images/photos of the screen than paraphrasing - because of "nameserver ::1" (which is the IPv6 localhost IP)

resolvectl status
stat /etc/resolv.conf
cat /etc/resolv.conf

are gonna be the most important ones.

Since you can ping 8.8.8.8, 1.1.1.1 and 9.9.9.9, this is a resolver thing and putting "nameserver 8.8.8.8" into /etc/resolv.conf will likely allow you to use the network (transiently, this might not survive a reboot)

This problem might have been caused by my botched install of PROTON VPN.
find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f

Offline

#5 2022-08-21 02:59:12

phollox
Member
Registered: 2013-05-04
Posts: 61

Re: Connected to WiFi but no Internet

Hello Seth. Sorry for the delay in response. Really no time to turn on my system. Thankfully, school will start soon and I can get the little one off my back for a sec.

Screen capture of command output

https://imgur.com/gallery/TSPXvIj

Thanks

EDIT: I changed resolv.conf to nameserver 8.8.8.8 and it works fine. Now I need to make it permanent and see why isn't working

Last edited by phollox (2022-08-21 03:47:19)


I divide by zero, multiple times per day. Also, I don't believe in tipping
Arch + i3wm (still learning)

Offline

#6 2022-08-21 06:30:12

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,491

Re: Connected to WiFi but no Internet

NM configuration, the ::1 is the IPv6 of the localhost what matches resolved which NM would default to, but resolved is neither enabled nor running.
https://wiki.archlinux.org/title/Networ … NS_servers

I suppose you don't get a DNS server via dhcp?

nmap _gateway

Offline

#7 2022-08-27 23:27:59

phollox
Member
Registered: 2013-05-04
Posts: 61

Re: Connected to WiFi but no Internet

Ok,

I still don't know what caused the issue. The systemd-resolved.service appeared as both enabled but stopped. Enabling it cut the internet (after manually putting the  8.8.8.8 on the resolv.conf)

And I remember intalling NM and using the DHCP from the "internal capabilities". So no dhcpd

I have no idea what to look. And every time I turn on the laptop, my son immediately starts asking for Tux games, so I can't advance too much in my research


I divide by zero, multiple times per day. Also, I don't believe in tipping
Arch + i3wm (still learning)

Offline

#8 2022-08-28 05:11:48

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,491

Re: Connected to WiFi but no Internet

You wrote:

So no dhcpd

but seth actually wrote:

suppose you don't get a DNS server via dhcp?

nmap _gateway # this will print the open ports of the router which is likely also your dhcp server, though…
sudo nmap --script broadcast-dhcp-discover # maybe there's a rogue one?

systemd-resolved.service appeared as both enabled but stopped. Enabling it cut the internetDNS

resolved has some very peculiar habits, https://wiki.archlinux.org/title/Systemd-resolved#DNS
tl;dr "stat /etc/resolv.conf" (and check the contents after starting resolved)

my son immediately starts asking for Tux games, so I can't advance too much in my research

So, when I was young, my parents send me to bed, pretty early. No discussion.
But unless the situation bothers you, there's also no need for haste.

Offline

Board footer

Powered by FluxBB