File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 19651
    
  18

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: java and IP
 
Similar Threads
zipping as self extracting exe
J2EE
class
WA #2 ..... word association
c++ or Java--your suggestions please