netcat returning "Bad file descriptor error" after a connection is made

Solution Verified - Updated -

Issue

  • While running nc -l 12345 the message "Bad file descriptor error" is returned after a connection is made.

Environment

  • Red Hat Enterprise Linux 7 with
    • nmap-ncat-6.40-19.el7.x86_64
  • Red Hat Enterprise Linux 8 with
    • nmap-ncat-7.70-5.el8.x86_64
  • IPv6 has been completely disabled on the system

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