osx - Enabling IPV4 is not working -


i have java program host name , failing host name in java 1.7_79 version in mac os.

i know putting host name in /etc/hosts or disabling ipv6 (use ipv4)

but wanted enable/disable ipv6 through java program. when execute java program passing parameter (java -djava.net.preferipv4stack=true gethostname) getting unknown host name.

what best way pass parameter in java program? there other ways host name in java 1.7 (1.7.79) in mac os?

thank you.


Comments