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 (all versions)
  • Process listening on high-numbered port and connecting over loopback interface

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content