Multiple IP's and one machine
843829Sep 1 2005 — edited Sep 1 2005Is there any way to define which IP address a JVM should use ?
(Note. For privacy concerns, I'll be designating our IPs by *.7 and *.8 )
Our machine has two IPs, *.7 and *.8 and *.7 is the default one. We want to run a remote service on the *.8 IP.
If we add socket permissions to java.policy on the *.7 *.8 IPs, it refuses to launch a JVM and says that it cannot listen on this address because this machine is *.7
If we only give socket permission on the *.8 IP, it says that it cannot launch a JVM because this machine is 127.0.0.1.
How can I tell the JRE to use the *.8 IP ?