• Ubuntu wifi (wireless) connected but no internet connection

    by  • June 7, 2009 • Ubuntu, webbook • 4 Comments

    Basically i was having some trouble with my webbook with Ubuntu on it were I could connect to my router, however i couldn’t then connect to the internet yet other devices could.

    To see if you have the same problem open up Terminal
    Applications > Accessories > Terminal

    then type
    ping -c 4 www.google.com
    you should get something similar to
    john@johnhome:~$ ping -c 4 www.google.com
    PING www.l.google.com (209.85.229.99) 56(84) bytes of data.
    64 bytes from ww-in-f99.google.com (209.85.229.99): icmp_seq=1 ttl=239 time=41.0 ms
    64 bytes from ww-in-f99.google.com (209.85.229.99): icmp_seq=2 ttl=239 time=40.2 ms
    64 bytes from ww-in-f99.google.com (209.85.229.99): icmp_seq=3 ttl=239 time=40.7 ms
    64 bytes from ww-in-f99.google.com (209.85.229.99): icmp_seq=4 ttl=239 time=41.2 ms

    --- www.l.google.com ping statistics ---
    4 packets transmitted, 4 received, 0% packet loss, time 3002ms
    rtt min/avg/max/mdev = 40.255/40.818/41.221/0.391 ms

    The most important part here is 4 packets transmitted, 4 received, if it doesn’t say and it just hangs its ok , just press control + c.

    Now try
    ping -c 4 209.85.229.99

    Now this time hopefully it will say 4 packets transmitted, 4 received.

    Basically the problem you have is that your webbook is not reversing the dns of the websites your trying to visit.

    One solution to fix this is to go to your terminal and type
    sudo gedit /etc/resolv.conf
    you will need to type your password then the file should open for editing.

    Add the following two lines to the file.


    nameserver 208.67.222.222
    nameserver 208.67.220.220

    Then save and close the window, now reboot your machine and hopefully all will be ok.

    If you have a computer that can connect to the internet, you may wish to visit https://www.opendns.com/start/device/ubuntu for an alternative way to set up the above.

    [ad#co-1]

    Related Posts

    • No Related Post

    4 Responses to Ubuntu wifi (wireless) connected but no internet connection

    1. Passerby
      February 10, 2010 at 5:14 am

      Thanks, this helped!

    2. Edo
      March 4, 2012 at 3:26 pm

      Thanks dude. I was having this problem not only using wifi, but while using a wireless connection as well. Lets hope this post helps some desparate googlers.

    3. March 7, 2012 at 10:56 pm

      Glad i could help, drove me mental when i had the issue.

    4. antonio
      April 27, 2012 at 12:00 am

      I got 4 packets transmitted, 0 received, +3 errors, 100% packects loss, time 2999 ms, pipe 3. Thanks in advance for any help.

    Leave a Reply

    Your email address will not be published. Required fields are marked *