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. how can i use <img> tag in message body?

View Tutorial          By: Sonal at 2012-11-07 07:05:33

2. where i can find Messageressourse.properties......
View Tutorial          By: sanjiv at 2013-09-07 06:59:19

3. I have a problem , i cant see the Microsoft.Office
View Tutorial          By: Japz at 2012-01-16 09:51:11

4. really nice explanation
View Tutorial          By: kuldeep at 2012-08-23 13:04:30

5. Nice explaination.. But wats the use of it? Can i
View Tutorial          By: kavita at 2013-04-04 07:10:14

6. very good introduction.thanx to the authr of this
View Tutorial          By: anjali at 2011-06-17 02:14:48

7. sir i want to knw abt all simple java programs pls
View Tutorial          By: sakthi at 2011-08-29 14:06:10

8. public class Overload2 {


View Tutorial          By: ITMIT at 2011-06-05 19:16:46

9. Article from Java Complete Reference
View Tutorial          By: venkatesh at 2013-06-04 01:29:02

10. I have download that 5 files .But how to run this
View Tutorial          By: Unnati at 2011-07-07 06:07:26