java && IPv6

Matthias Apitz guru at unixarea.de
Tue May 28 12:27:03 UTC 2013


El día Tuesday, May 28, 2013 a las 03:06:08PM +0300, Alexander Yerenkow escribió:

> Did your jdk built with ipv6 support?

I've checked the same class with openjdk7 on my 10-CURRENT netbook:

$ java -version
openjdk version "1.7.0_17"
OpenJDK Runtime Environment (build 1.7.0_17-b02)
OpenJDK Client VM (build 23.7-b01, mixed mode)

$ netstat -an | fgrep 39999
tcp46      0      0 *.39999                *.*                    LISTEN

the 'tcp46' let me think, that the LISTEN is for both, IPv4 and IPv6,
and I can reach the server with

$ telnet ::1 39999
Trying ::1...
Connected to localhost.

and with

$ telnet 127.0.0.1 39999
Trying 127.0.0.1...
Connected to localhost.

Seems to work fine now.

Btw: How do they do this internally having only one Socket for both
families?

	matthias

-- 
Sent from my FreeBSD netbook

Matthias Apitz               |  - No system with backdoors like Apple/Android
E-mail: guru at unixarea.de     |  - Never being an iSlave
WWW: http://www.unixarea.de/ |  - No proprietary attachments, no HTML/RTF in E-mail
phone: +49-170-4527211       |  - Respect for open standards


More information about the freebsd-java mailing list