Connected to Wifi but no internet

Solution 1:

I found a simple fix. I didn't have any problems pinging IP addresses; I ran into problems when I tried to issue a command like:

ping google.com

In other words, I could connect to the internet, as affirmed by the wifi indicator, but I was having problems turning domain names into IP addresses. This process is handled by the text file /etc/resolv.conf, so I decided perhaps it need to be updated. I issued the command:

sudo resolvconf -u

but Ubuntu spit this back at me:

/etc/resolvconf/update.d/libc: Warning: /etc/resolv.conf is not a symbolic link to /run/resolvconf/resolv.conf

This was the source of my problem: somehow /etc/resolv.conf was pointing to /run/resolvconf/resolv.conf . Fortunately, once I removed the bad symbolic link and created a new symbolic link the wifi worked immediately. That is, I ran the following commands:

sudo rm /etc/resolv.conf
sudo ln -s /run/resolvconf/resolv.conf /etc/resolv.conf

and the wifi was back up! I hope this simple solution works for you too!

Solution 2:

knowing how to address a non working internet connection may help as follows.

opening a terminal and...

See if you can ping or traceroute to google's public dns.

ping 8.8.8.8
mtr 8.8.8.8

If you get communication with Googl's public DNS then skip down to the last step on DNS.

If you're not getting a ping/traceroute to Goole's DNS then start by making sure your wireless addapter is getting IP information with the command.

ifconfig

output should have ip information listed for your wireless adapter something like...

wlan0   Link encap:Ethernet  HWaddr 00:xx:xx:xx:xx:xx
    inet addr:192.168.1.55  Bcast:192.168.1.255  Mask:255.255.255.0

next check to make sure you have a default route

route

output should have a route something like...

default         192.168.1.1    0.0.0.0         UG    0      0        0 wlan0

At this point you should be able to ping and/or traceroute to Google's public DNS "8.8.8.8". If not then call your Internet provider for additional help with your internet connection.

Now that we can ping google's public DNS we can be well assured that our internet is working. If you're still having problems then your computer is most likely not reaching a working DNS service. You can check your DNS servers with...

cat /etc/resolv.conf 

You should also check the connection status in your network manager if you're using a desktop version of ubuntu. Once you have identified/set your DNS servers make sure you can ping them as well. If you can ping the DNS servers that you have set then the problem resides above the network layer in a firewall or application issue.

Solution 3:

This may help.

When I loaded Ubuntu 16.04.1 on my old desktop I already had Windows Vista installed. Although I used a second reformated HD disk Ubuntu keeps track of the Windows operating systems and will allow you to boot to it as an option. This seems to interfere with the WiFi it connected correctly but would not access the internet and nothing I did would fix.

I removed the original Windows disk from the system and reinstalled Ubuntu and now have no problems with my Wifi.