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();


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. Very Useful tutorial for beginners.. Thanx
View Tutorial          By: Rohini at 2010-02-23 23:16:16

2. Did you happen to import any certificates to execu
View Tutorial          By: Shashank at 2013-03-15 12:17:50

3. your code error

because i try to ru

View Tutorial          By: Nasser at 2013-01-09 10:33:34

4. if a class is declared as abstract and it contains
View Tutorial          By: nagaraj at 2012-04-25 17:12:30

5. it is very good for best practice of basics.......
View Tutorial          By: sushil ghimire at 2015-03-01 13:27:57

6. Hi Mounika, The reason to the problem is that you
View Tutorial          By: Ramlak at 2008-04-26 20:06:21

7. This works great, just remember to add <uses-pe
View Tutorial          By: Nick at 2012-06-20 07:37:15

8. good information
View Tutorial          By: varun at 2013-01-04 14:51:19

9. plz send me some interview based simple java progr
View Tutorial          By: Abilesh at 2013-06-23 06:43:03

10. @Iqra :

You're welcome. Use sites l

View Tutorial          By: Macho Man at 2012-07-16 08:02:14