JDK-8209137 : Add ability to bind to specific local address to HTTP client
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 11,12
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-08-08
  • Updated: 2024-12-13
  • Resolved: 2022-05-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 19
19 b23Fixed
Related Reports
CSR :  
Duplicate :  
Description
Currently there is no way to specify a local address when the HTTP client creates client sockets. This would be useful on multi-homed devices when a specific interface must be used.

The address could be set for simplicity at the HttpClient level rather than for specific HttpRequests.
Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/6690 Date: 2021-12-03 06:15:31 +0000
08-11-2024

Changeset: f4258a50 Author: Jaikiran Pai <jpai@openjdk.org> Date: 2022-05-16 11:45:32 +0000 URL: https://git.openjdk.java.net/jdk/commit/f4258a50e0f65ab9c375b9ee79f31de98d872550
16-05-2022