LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How was I able to connect, but ping didn't work? (https://www.linuxquestions.org/questions/linux-networking-3/how-was-i-able-to-connect-but-ping-didnt-work-4175543776/)

superbbrr 05-27-2015 05:03 PM

How was I able to connect, but ping didn't work?
 
So I needed to connect to a remote server to install some debian packages. I was trying to configure network settings to allow me access outside.

But my coworker said to just connect to his own laptop and I can access the packages that way.

So I setup in my /etc/hosts file, "132.21.23.45 packages.xyz.com"

My own IP is 10.x.x.x.

I tried to ping 132.21.23.45, but it didn't work.

Yet, sudo apt-get update worked and I was able to get some packages.

How does this work? Just by putting an IP address in /etc/hosts, I can't ping it, but I can connect and grab packages? So confused.

suicidaleggroll 05-27-2015 05:29 PM

I can't say with any certainty what was going on in your situation, but there's no reason his system has to respond to a ping. Pings could be blocked on his machine, so you'd never get a response even though other services are working just fine.

jefro 05-27-2015 07:23 PM

Ping is a poor choice to use as a test anymore. It is blocked by default for many reasons.

veerain 05-27-2015 09:37 PM

To avoid DDOS attack ping is usually blocked. You may try traceroute instead. Or plain http download (if setup).

frankbell 05-27-2015 09:46 PM

This article might tell you more: http://www.linuxhowtos.org/Security/disable_ping.htm

A search for "block ping" will turn up many more links. Some of them are useful.


All times are GMT -5. The time now is 02:39 PM.