Comment on Tutorial - InetAddress Example program in Java By Grenfel



Comment Added by : Marcin

Comment Added at : 2011-05-17 05:24:51

Comment on Tutorial : InetAddress Example program in Java By Grenfel
Does anybody know how to force using IPv6 by my laptop??
I connect my computer to another one locally, disable IPv4 stack on my NIC, assign static IPv6 address (which is displayed and confirmed by ipconfig command in cmd) and after all what I get from these two lines of code?

InetAddress Address = InetAddress.getLocalHost();
System.out.println(Address);

Marcin-Komputer/127.0.0.1

:((((
What is wrong?what I need to change to work with my IPv6 address??please, give me some advice..


View Tutorial



Related Tutorials

Java program to get location meta data from an image

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Archived Comments

1. helpfull !!!!
View Tutorial          By: Anonymous at 2009-05-12 03:48:15

2. i want divide the jsf page to two pages
pl

View Tutorial          By: habib_fci at 2008-06-11 06:05:29

3. Wow NIce
View Tutorial          By: Zahid ALi at 2015-01-16 22:35:45

4. If i jus wanna read the files in the phone , how s
View Tutorial          By: vt at 2010-01-28 02:50:26

5. I am new to J2ME but this was really help full and
View Tutorial          By: Subhash at 2013-05-05 08:57:38

6. nice article...........................
View Tutorial          By: abhijit at 2012-09-24 11:12:46

7. good quick explanation. Thanks
View Tutorial          By: kay at 2008-12-08 21:10:13

8. i am a bca student. i want to know more about garb
View Tutorial          By: ahana at 2011-06-26 11:02:36

9. this really helps me alot :)
View Tutorial          By: liezl at 2014-08-08 13:38:58

10. Hi Andrew,

I have a java applicatio

View Tutorial          By: kumar at 2010-10-06 10:42:55