How can I specify which network interface OkHttp will use when establishing new connections

Viewed 1296

I am using OkHttp within an application I run on a server, and the server has multiple network interfaces configured at the OS level.

How I can control which network interface OkHttp will to use to send new requests?

By default, I see it simply selects one of the interfaces available, where as I would like to provide users of my application built on top of OkHttp the ability to configure the interface which should be used.

2 Answers
Related