unable to ping google.com or its IP but able to browse through browser

Asked by utubecraze

Hi,

I am unable to ping google.com or its IP but able to browse through browser.

I have Ubunut 14.04 LTS.

What could the issue ?

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Do you connect to the internet via a proxy server?

What is the output of the terminal commands
echo $http_proxy
grep proxy /etc/environment
grep proxy /etc/bash.bashrc
grep proxy ~/.bashrc

Revision history for this message
utubecraze (utubecraze) said :
#2

Hi,

Here is the output

root@ubuntu-2:~# echo $http_proxy
http://proxy-server.com:8080/
root@sdn-ubuntu-2:~# grep proxy /etc/environment
http_proxy="http://proxy-server.com:8080/"
root@subuntu-2:~#
root@ubuntu-2:~#
root@ubuntu-2:~# grep proxy /etc/bash.bashrc
root@ubuntu-2:~#
root@ubuntu-2:~# grep proxy ~/.bashrc
root@ubuntu-2:~#
root@ubuntu-2:~#

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

Is that entry
http_proxy="http://proxy-server.com:8080/"
in the file /etc/environment on purpose? I do not think that it makes sense.

Open a terminal and try

unset http_proxy
ping -c 3 8.8.8.8

Does it now work?
I am quite sure that you should remove that proxy entry from /etc/environment.

Can you help with this problem?

Provide an answer of your own, or ask utubecraze for more information if necessary.

To post a message you must log in.