I'm writing an application that has 10 (as an Example) threads running. each thread creates a connection using HttpURLConnection
to external host. I need to use a different IP address for each connection in different threads. can I do it considering the fact that there are about 10 valid static IP addresses assigned to my server?
note that I have seen something like same question here and here but in first one though it has an answer checked as correct by asker, but I see too many comments telling that Its not working and in second one is talking about How to make the JVM use a given source IP by default? which does not help me I guess.
beside I don't want to risk and pay for the server and then find out I cant do such a thing!