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
  • 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, 2013 at 15:50
  • Laptop DNS:, Gateway: is the ip address of my wifi card in the desktop.
    – Thomas
    Mar 5, 2013 at 15:55

1 Answer 1


Routing is only part of the problem. check this documentation on Internet connection sharing in ubuntu https://help.ubuntu.com/community/Internet/ConnectionSharing 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.

  • WPA is supported in Ubuntu 12.10 though.
    – BatchyX
    Mar 5, 2013 at 16:25
  • ok good. hopefully some day someone will update the documentation. Mar 5, 2013 at 16:27

You must log in to answer this question.

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