Super User is a question and answer site for computer enthusiasts and power users. 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 setup a wifi Hotspot in my desktop(Ubuntu 12.04), and was able to connect to it using my laptop(also Ubuntu 12.04).

My desktop is connected to Internet using Ethernet cable and I can access internet from my desktop but not from my laptop.

Also I can ping successfully to my router from my laptop, but still no internet.

Please point me how to troubleshoot this.

Desktop routing table.

$ /sbin/route -n

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface         UG    0      0        0 eth1   U     2      0        0 wlan1     U     1000   0        0 eth1   U     1      0        0 eth1
share|improve this question
can you please check DNS and gateway settings on your laptop? I think the desktop pc assign them (DHCP) to your laptop. – AndreaCi Mar 5 '13 at 15:50
Laptop DNS:, Gateway: is the ip address of my wifi card in the desktop. – Thomas Mar 5 '13 at 15:55
up vote 1 down vote accepted

Routing is only part of the problem. check this documentation on Internet connection sharing in ubuntu it will require DNSMasq and some IPTables configuration, or you can do it through the NetworkManager gui. Note that per the documentation, ICS for Adhoc wireless does not support WPA, so you have to rely on WEP.

share|improve this answer
WPA is supported in Ubuntu 12.10 though. – BatchyX Mar 5 '13 at 16:25
ok good. hopefully some day someone will update the documentation. – Frank Thomas Mar 5 '13 at 16:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .