• Post Reply Bookmark Topic Watch Topic
  • New Topic

java and IP

 
Aron Jhed Amiscosa
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi there.

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

instructions are pretty much appreciated.

thanks.
 
Rob Spoor
Sheriff
Posts: 20819
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Sockets and Internet Protocols.
 
Sriraman Srinivasan
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are two jvm parameters which can be used... -Djava.net.preferIPv4Stack=true and -Djava.net.preferIPv6Addresses=false
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!