JDK-8218757 : HttpClient: provide a way to select the local interface to which the client should bind to.
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.net
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2019-02-11
  • Updated: 2023-01-13
  • Resolved: 2023-01-13
Related Reports
Duplicate :  
Description
One possibility could be adding e.g. `HttpClient.Builder.setLocalAddress(InetAddress)` or `HttpClient.Builder.setChannelFactory(Supplier<SocketChannel>)`. 

Comments
See https://stackoverflow.com/questions/54605034/using-java-net-http-httpclient-how-to-bind-to-specific-interface-for-outgoing
11-02-2019