Skip to content

how to bind to a network card #2298

Discussion options

You must be logged in to vote

I suggest you read some networking.
Your PC has an operating system
Your OS has a TCP/IP stack
Your cards are connected to networks
Each network has a network address and each card has a host address
When you start a listener, you choose on what address you will listen. This you can control. See the examples.
When you start a connection, your stack decides on which interface to exit based on the destination address and its routing table. This you can't, and usually don't need to.
In IPv6 there are other options we do not support

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@lightyear67
Comment options

@scaprile
Comment options

@lightyear67
Comment options

Answer selected by scaprile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants