title: Does a connection to localhost go out onto the network?
body: <p>What I want to know is, if I were to execute something like <code>ping localhost</code>, 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?</p>