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. i m new in java plz send some programs of java usi
View Tutorial          By: supriyo at 2009-09-02 02:03:38

2. I need a software to send messages to our members.
View Tutorial          By: M V Bhaktha at 2012-05-22 08:19:38

3. this helps a lot
View Tutorial          By: Ashar at 2010-04-28 04:47:36

4. THANX :)
View Tutorial          By: Saurabh at 2012-01-02 16:13:06

5. Thanks a lot for valuable program.


View Tutorial          By: Kailash at 2012-07-30 10:09:12

6. thanks...........its really very helpful for me...
View Tutorial          By: ashwini agarmore at 2013-01-17 06:31:21

7. I need code for read write mifare 1k card using No
View Tutorial          By: amarendra at 2010-12-02 21:12:08

8. Its Very Good Example
View Tutorial          By: Madhu at 2011-08-26 12:11:49

9. nice example and this is very use ful
View Tutorial          By: jyothi at 2011-02-18 22:24:51

10. PROGRAMMING SUPERB
View Tutorial          By: vinay sharma at 2010-10-01 05:16:23