Application establishes a socket connection to itself if run many times

Solution Verified - Updated -

Issue

  • Application establishes a socket connection to itself if run many times
  • system auto establish connection to local port
  • Writing an application which connects to a high-numbered ephemeral port over the loopback eventually results in that application establishing a socket connection to itself
  • Repeatedly running nc localhost 50000 eventually establishes a connection, even without a second process in LISTEN state

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 5
  • Process listening on high-numbered port and connecting over loopback interface

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.