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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T03:34:52+00:00 2026-05-15T03:34:52+00:00

I have interfaces lo , eth0 , and eth0:1 . progA creates a listen

  • 0

I have interfaces lo, eth0, and eth0:1.

progA creates a listen socket, and binds it to port p on INADDR_ANY.

Simultaneously, I would like to use ncat to port forward, listening on the same port p, but only on the IP address associated with eth0:1. As expected, ncat is failing with “address already in use”.

What I would like to be able to do is: have progA bind its listen socket to the addresses associated with interfaces lo and eth0, but not to the address associated with eth0:1, leaving that address open for ncat to bind to.

Is there an alternative to INADDR_ANY that allows binding to multiple interfaces and/or multiple IP addresses?

  • 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-15T03:34:53+00:00Added an answer on May 15, 2026 at 3:34 am

    You need to separately bind to each of the individual interfaces using different sockets. Alternatively, you could write a program using libpcap to capture packets on eth0:1 and forward them. Packet capturing lets you observe an interface without actually binding to it.

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

Sidebar

Related Questions

I have two interfaces in a solaris host. I would like to initiate two
I currently have interfaces much like the following: interface IService { void Start(); IHandler
I have an application bound to eth0, sending UDP packets on port A to
If interfaces have empty methods (implicit abstract method) then what is its use? Why
I have an interfaces for my data tier that supply common methods like insert,
I would like to send data between two ethernet interfaces that are connected with
If I were to have interfaces like so: public interface IAlbum { string Title
I have two interfaces like these: public interface IMyInterface1 { string prop1 { get;
I have a PC with two network interfaces: eth0 and eth1. eth0 - Has
I have added eth0:1 with one more ip to the interface file of my

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.