Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4021082
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:18:28+00:00 2026-05-20T10:18:28+00:00

TCP standard has simultaneous open feature. The implication of the feature, client trying to

  • 0

TCP standard has “simultaneous open” feature.

The implication of the feature, client trying to connect to local port, when the port is from ephemeral range, can occasionally connect to itself (see here).

So client think it’s connected to server, while it actually connected to itself. From other side, server can not open its server port, since it’s occupied/stolen by client.

I’m using RHEL 5.3 and my clients constantly tries to connect to local server.
Eventually client connects to itself.

I want to prevent the situation. I see two possible solutions to the problem:

  1. Don’t use ephemeral ports for server ports.
    Agree ephemeral port range and configure it on your machines (see ephemeral range)
  2. Check connect() as somebody propose here.

What do you thinks?
How do you handle the issue?

P.S. 1

Except of the solution, which I obviously looking for,
I’d like you to share your real life experience with the problem.

When I found the cause of the problem, I was “astonished” on my work place people are not familiar with it. Polling server by connecting it periodically is IMHO common practice,
so how it’s that the problem is not commonly known.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T10:18:28+00:00Added an answer on May 20, 2026 at 10:18 am

    For server you need to bind() socket to port. Once addr:port pair had socket bound, it will no longer be used for implicit binding in connect().

    No problem, no trouble.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a TCP/IP client that has to deal with a proprietary binary
I'm trying to create a windows driver that allows a standard TCP/IP socket to
Given a device with an open TCP port on a non priviliged and not
Is Standard (TCP/IP) a faster or more secure method to connect than Standard TCP/IP
Does TCP/IP prevent multiple copies of the same packet from reaching the destination? Or
I wrote a raw TCP client for HTTP/HTTPS requests, however I'm having problems with
I am running Ubuntu and am ultimately trying to connect Tomcat to my MySQL
I am trying to replace standard logger initialization by some injection 1-st. I was
I'm trying to make a simple TCP server using Twisted ,which can do some
I was trying to measure the speed of a TCP server I'm writing, and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.