1

I am working with with an interface with multiple assigned IP addresses. I need establish a connection from this interface to a remote listening SCTP socket (not in multi-homing mode).

How is it possible to select the desired interface's IP as the source of the connection? What flag/socket-option should be used?

Bill the Lizard
  • 398,270
  • 210
  • 566
  • 880
Umberto
  • 75
  • 2
  • 6

1 Answers1

4

You can use the bind() function to set the local IP address.

Simon Richter
  • 28,572
  • 1
  • 42
  • 64