jQuery in Action, 2nd edition*
The moose likes Sockets and Internet Protocols and the fly likes java and IP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "java and IP" Watch "java and IP" New topic
Author

java and IP

Jhedzkie Skies
Ranch Hand

Joined: Oct 28, 2009
Posts: 118
hi there.

is there a way to make java use only ipv4 and ignore ipv6?

instructions are pretty much appreciated.

thanks.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19697
    
  20

Moving to Sockets and Internet Protocols.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Sriraman Srinivasan
Greenhorn

Joined: Jul 08, 2010
Posts: 10
There are two jvm parameters which can be used... -Djava.net.preferIPv4Stack=true and -Djava.net.preferIPv6Addresses=false
 
GeeCON Prague 2014
 
subject: java and IP