[openssl-users] How to use a specific ip interface while testing TLS/SSL connectivity.

Viktor Dukhovni openssl-users at dukhovni.org
Fri Feb 8 18:00:03 UTC 2019

> On Feb 8, 2019, at 12:55 PM, Michael Wojcik <Michael.Wojcik at microfocus.com> wrote:
> For IPv4: Create your socket, bind it to the local interface you want to use (specifying a port of 0 if you want an ephemeral port assigned as in the usual case), then connect to the peer. You'll probably want to enable SO_REUSEADDR on the socket before calling bind.

For the record, one should *not* use SO_REUSEADDR for client sockets used in
outbound connections.


More information about the openssl-users mailing list