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 to import myownclass into another class same p
View Tutorial          By: rana at 2013-04-19 17:32:08

2. Hi.. I tried it on blackberry... I have a problem
View Tutorial          By: jeremejazz at 2011-01-12 22:56:02

3. plz answr for questions about time out problem whl
View Tutorial          By: rrai at 2013-08-26 06:06:57

4. this site is really very useful.
it provide

View Tutorial          By: ankush bansal at 2009-11-12 08:34:13

5. Hi everybody,
cn u plz mail me the working

View Tutorial          By: Srijita at 2011-11-28 06:10:03

6. Very well explained and perfectly summarised.
View Tutorial          By: Sachin at 2009-08-30 12:39:27

7. the difference is of great important for new comme
View Tutorial          By: ramesh shetty at 2013-03-12 15:27:23

8. Excellent !!!
Never thought about it...

View Tutorial          By: RahulC at 2012-07-03 11:36:57

9. Able to connect to mobile
Unable to send me

View Tutorial          By: Prashant at 2011-04-24 01:16:27

10. it is very useful to others............,thanx
View Tutorial          By: jey at 2012-01-06 08:53:22