1

I've been using Ubuntu 14.04 LTS for almost one and half years now. This problem hasn't ever happened before. The bar at the top shows that I'm connected to WiFi/ethernet, but when I try to connect to, say Google, I'm unable to get to it. Chrome says "This site can't be reached".

EDIT_0 (some more info, don't know if this is useful; I already mentioned this in a comment to one of the answers): I'm using a dual-boot machine, running Windows 10 and Ubuntu 14.04. Both wired and wireless network connections work absolutely fine on Windows. Also, I've tried two different mobile hotspots, with the same result, i.e. works in Windows but not in Ubuntu.

EDIT: the diagnostics output can be found here (https://pastebin.com/2FSvfwKq)

EDIT2: Diagnostics run as suggested by @David Foerster. Results are as follows [pastebin link is https://pastebin.com/zGseXr1d ]:

jarvis@jarvis-Inspiron-5558:~$ ping -c4 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
--- 8.8.8.8 ping statistics 
---4 packets transmitted, 0 received, 100% packet loss, time 3024ms

jarvis@jarvis-Inspiron-5558:~$ ping6 -c4 2001:4860:4860::8888
connect: Network is unreachable

jarvis@jarvis-Inspiron-5558:~$ host google.com
;; connection timed out; no servers could be reached
muru
  • 207,228
Arkya
  • 115

3 Answers3

3

SOLVED: It turns out the problem was a firewall issue. Hopefully OP will find the specifics and update the original post. For those wanting to understand how online tech support works, the comments show the step by step approach used to identify then solve the problem.


I'd start by removing the Wifi as a possible source of problems. Connect directly to your router using an ethernet cable. Next try and ping the router on its IP (I'd expect this to be something like 192.168.1.1), but "ip addr" will tell you.

I can see that your Wifi is on 192.168.43.146 which seems fairly normal, so you could just try pinging/connecting to the gateway using a web browser http://192.168.43.1.

Either Wifi gateway IP or ethernet gateway IP should bring up your router's web UI.

If that works and you have other devices that connect to the internet via this router (i.e. a phone), then the issue is likely to be firewall type issues e.g. iptables, AppArmor, ufw, etc.

If you can't reach your router's web UI then it is likely that you have some odd DHCP configuration that is not giving out the correct gateway for your PC. Try manually configuring the ethernet interface with an unused IP that is in your subnet e.g. 192.168.1.111. This is also much easier to get right when using a cable rather than wifi. If that works and you are connected, then you could just run with it by making sure that IP is never given out by your router (check you router config), but it would be better to find out why and fix it.

Martin
  • 218
0

Check your Wi-Fi network with other devices if you get internet access on them. Only then can you say that your device has a problem. If you don't get internet on other devices also, then it's the problem with the network.

You can also try to connect to your network router with a lan cable(if possible) and check if your network is culprit.

If you find out that that the problem is with your device, then you can try:

  • Restarting the network manager by typing the following code in terminal and entering the administrator password

    sudo service network-manager restart

  • Restarting your device

  • Forget your Wi-Fi network and connect to it freshly(see the 2nd answer in this https://askubuntu.com/a/284024/574724 )

  • Change your Wi-Fi driver under Additional Drivers in Software and Updates option of settings.

  • Restarting your router

It is more likely to be a problem with your network as you are already connected to your Wi-Fi router.

Yaksha
  • 1,760
0

I am a little confused as to why your wireless ip address changes (as I'm going through your initial listing to the more recent and windows set-up).

Does your windows installation require some sort of authentication or a special program your school supplied before allowing you access to the network, or even the use of a proxy for internet access?

In any case, forcing a dhcp re-sync may fix your problem, if it is at the local interface level.

First run

ifconfig |grep inet

for your wireless interface

sudo dhclient wlan0

for your wired interface

sudo dhclient eth0

then again

ifconfig |grep inet

and paste your output. Let's see if your network address has changed.

sergtech
  • 513