Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does a connection to localhost go out onto the network?

Tags:

What I want to know is, if I were to execute something like ping localhost, would the packets be redirected by the operating system and go directly to the destination port or would the packets go out on the network to the nearest router or switch which then bounces them back to your computer?

like image 428
GameFreak Avatar asked May 13 '09 21:05

GameFreak


Video Answer


1 Answers

No packets will hit the network. Unplug your network cable and try it!

like image 58
RichieHindle Avatar answered Oct 21 '22 14:10

RichieHindle