Many ip addresses on the machine, set the outgoing ip java
I recently got a machine with 10 IPv6 addresses, this is CentOS with MySQL and tomcat, I am using spring to create servlets.
I was wondering if there is a Java way (not OS routing tables) to set the outgoing IP from those available on my server?
What I am trying to do is get the inbound address for the servlets and make an http post from a specific IP address accordingly.
For all my research, what I've seen closest to solving this would be httplib, but is there something similar for Java?
+3
source to share