Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can't connect to the Internet via wireless network or Ethernet I can connect to the router, but when I launch Firefox, it tells me I can't connect to the server

share|improve this question
What Ubuntu release are you running? – Mitch Jun 5 '13 at 19:55

Try to ping an IP-address to see if it is a DNS problem:

ping -c4

If this does'nt work, please edit your question to contain output from these commands: lspci and ifconfig

share|improve this answer

Step One: Determine your gateway (router) address

Open a terminal and issue the command route -n

Note that my interface is wlan0 as I'm currently connected via wireless, yours will likely be eth0


Step Two: Insure that you can ping the router

issue the command `ping -c4 gateway address (in my case it is

You should have 0% packet loss. Failure here indicates trouble communicating with your router (the problem is likely bad cabling or a bad port on the router)

Step Three: Try to ping an address by name on the internet for example:

ping -c4 again we are hoping to see 0% packet loss

If this fails you likely have a DNS problem. Below you'll see an example of what happens if you ping a known address followed by an unknown (non-existent) address.


You can confirm a DNS problem by pinging a known address by number for instance at like ping -c4 If the name fails and the number doesn't the problem is with DNS.

If pinging by number also fails you have a problem somewhere down the line (probably outside your premises) and may wish to contact your ISP.

You can get the adresses for your ISP gateway and DNS Servers out of your router (methods vary slightly by manufacturer/model - consult your manual) pinging those may allow you to converse a bit more intelligently with your ISP Perhaps assisting them in assisting you!.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.