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

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

Java program using Method Overriding

Archived Comments

1. nice... thanks for the explain, you safe my day...
View Tutorial          By: Joseph Louis at 2011-05-11 08:53:53

2. I do not understand this line:
Map.Entry me

View Tutorial          By: hap Og at 2011-11-03 01:42:33

3. This the very good introduction to the J2ME for th
View Tutorial          By: chetan jain at 2010-04-01 06:39:32

4. Great example. To reset the initial value on readb
View Tutorial          By: Bala at 2014-07-22 04:48:34

5. very very nice...
thanks

View Tutorial          By: ramu at 2010-11-23 23:38:18

6. thxxx :) very simple explanation
View Tutorial          By: mohamed at 2012-09-09 04:16:06

7. thanx a lot for this tutorial brother!!!!! a great
View Tutorial          By: manas at 2013-04-01 17:18:00

8. yes 29 you are correct! 27's example is prone to a
View Tutorial          By: sameendra at 2011-07-24 11:55:54

9. It is really very gud. And wht i suggest u is if
View Tutorial          By: Ragava rao at 2008-07-19 05:33:18

10. Thank You So Much ^,^
I get rid of that err

View Tutorial          By: moji junk at 2009-02-24 07:48:19