0

I am using Ubuntu 17.04 and connect Internet from WiFi hotspot using my android mobile. It successfully connected and get ip address but Internet is not working. When I ping Google, it shows output as

ping: google.com: Name or service not known

while the connection information showing 1 to 72 MBPS speed. I also found another question with same issue but got no benefit.

  • internet is working if i connect it with usb cable or LAN etc.
4
  • askubuntu.com/a/909214/665251 See if it works for you! and do you have 8.8.8.8 added in DNS settings? Apr 26, 2017 at 16:49
  • I check it but it is not working. Actually, I think that this is not a problem of DNS because internet is working properly when i connect with USB cable or LAN. It is not working only in wifi connection. Apr 27, 2017 at 5:36
  • yes, i missed that what does lshw -C network says? Apr 27, 2017 at 5:48
  • 1
    Thanks @SumeetDeshmukh , the article shared by you, helps me and I am posting answer below which works for me. Apr 27, 2017 at 17:17

1 Answer 1

0

All you need to do is Open a terminal by pressing Ctrl + Alt + T and run:

sudo nano /etc/NetworkManager/NetworkManager.conf

At the bottom of this file, copy and paste the following:

[device] 
wifi.scan-rand-mac-address=no

after pasting it press Ctrl+ X and then type Y to Save it and press Enter

You can double check if the changes got saved by running the first command again and check if the edited line is there

Now you need to start your network manager for changes to take effect

sudo service network-manager restart

And WiFi should work again, Try to connect it

reference: Belkin F7D1101 v1 works under Ubuntu 16.10 but not under Lubuntu 17.04

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