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 about soting you word? like your output will b
View Tutorial          By: [email protected] at 2011-01-27 16:40:51

2. This is starting program for me in j2me.This will
View Tutorial          By: Surya at 2010-07-26 03:29:47

3. Good introduction to a valuable topic
View Tutorial          By: Elayaperumal at 2011-07-18 12:48:15

4. thank for this
View Tutorial          By: ankit at 2011-07-15 06:48:21

5. pls tell me how to run the prog step by step. just
View Tutorial          By: divakar varshney at 2015-04-02 11:14:34

6. Nice Article....
View Tutorial          By: Vipin Joshi at 2008-04-13 15:35:42

7. Thanks, it worked.
View Tutorial          By: Deepak Varier at 2009-08-19 03:38:07

8. this article is very good for the beginners. I am
View Tutorial          By: manoj kumar palbabu at 2009-12-02 10:44:04

9. I an going to try this code.
View Tutorial          By: Bhagawati Prasad at 2010-02-06 02:45:10

10. It's good working very well...............
View Tutorial          By: avinash at 2013-03-07 09:38:21