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 6334273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:37:42+00:00 2026-05-24T18:37:42+00:00

I have a Linux application for which there’s no source. It listens for incoming

  • 0

I have a Linux application for which there’s no source. It listens for incoming TCP connections on a specific port. Because it was mis-designed, it can only handle one connection at a time.

I would like to run multiple instances of this app, and let each of them think that they own that port, by virtualizing their socket creation calls — i.e. provide a redirection layer which will distribute incoming connections to a pool of these applications, which otherwise would not run because they’re contending for that one port.

I’m happy to write the glue code, but it seems likely that there’s already some interception solution for socket creation that shouldn’t be reinvented. Is there?

  • 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-24T18:37:44+00:00Added an answer on May 24, 2026 at 6:37 pm

    You should be able to use a library with LD_PRELOAD to override the application’s use of the socket API. You may want to start by looking at the code of a socksify utility, such as tsocks or socksify from dante as a starting point.

    In fact, you could even set up a socks server and use one of those existing utilities to work around the issue.

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

Sidebar

Related Questions

I have a Linux C++ application which receives sequenced UDP packets. Because of the
I have a networking Linux application which receives RTP streams from multiple destinations, does
I have an application which i build using gcc on linux host for ARM
We have a Linux server application that is comprised of a number of open-source
I have J2SE application running in linux. I have stop application script in which
I have to develop an application which parses a log file and sends specific
I have an linux application, which on the linker line links against: libpython2.6.so This
I have Swing Java application manifesting an error on linux, which I need to
I would like to port an existing Linux application from its plain C/C++ source
I have an application which i am going to install on Linux touch system.

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.