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. Hey Narayanan, maybe you should check out Vesijama
View Tutorial          By: Benny Bottema at 2009-05-03 14:27:07

2. it's very nice answer
View Tutorial          By: ahmedmohsen at 2011-12-31 19:26:09

3. i want complete notes on java from basics
View Tutorial          By: spandana at 2010-02-12 04:44:13

4. the article is very useful...!
View Tutorial          By: pravin salame at 2011-05-20 11:58:28

5. Good one. Clear basic concept
View Tutorial          By: Joshua at 2010-03-12 01:13:08

6. CTRL+C then CTRL+V :P
Complete Reference ;)

View Tutorial          By: Rahul A at 2012-03-21 14:12:56

7. Its very clearly explained.
View Tutorial          By: sowjanya at 2013-10-04 09:26:04

8. Nice one really helpful thanks
View Tutorial          By: Shashikant at 2012-01-06 12:00:45

9. As C does not support Function Overloading, there
View Tutorial          By: N at 2013-03-06 00:27:14

10. I am wanting to use a Honeywell 4600g handheld sca
View Tutorial          By: bugdrvr1970 at 2012-01-25 17:27:43