Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Multiple IP's and one machine

843829Sep 1 2005 — edited Sep 1 2005
Is 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 ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 29 2005
Added on Sep 1 2005
6 comments
136 views