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



Subscribe to Tutorials

Related Tutorials

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

Java program using Method Overriding

Java program to check if user input is an even number

Archived Comments

1. the best site i have found so far for clearing my
View Tutorial          By: darkknight at 2013-06-05 05:54:10

2. This tutorial is very nice for beginners.
View Tutorial          By: Wakil Ahamad at 2009-02-07 05:58:31

3. Great tutorial. Thanks guys.
View Tutorial          By: John D at 2009-03-21 11:01:58

4. Great work ;)
View Tutorial          By: Rizwanulla Sharieff at 2012-08-21 04:42:41

5. can you non grab the data direct from the vector w
View Tutorial          By: paul at 2013-08-30 11:22:04

6. Thank you, for simple and useful example.
View Tutorial          By: Dmitriy at 2011-09-04 20:53:53

7. This came out of a book
View Tutorial          By: Kyle Bradley at 2010-04-12 19:48:12

8. Hi, I used your fix and it looks like it worked fi
View Tutorial          By: Eddie at 2011-02-21 18:41:06

9. Awesome code workings fro me thank you so much :)
View Tutorial          By: Shripad at 2012-01-24 08:58:03

10. very good explanation... thnx...
View Tutorial          By: gobu at 2009-04-05 23:43:19