Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does a JVM listen on an IPv6 debugging port?

I cannot connect to a remote JVM on a host that only has an IPv6 interface.

What parameter should be passed to the JVM to enable listening on the IPv6 interface?

like image 922
user1268448 Avatar asked Jan 19 '26 02:01

user1268448


1 Answers

Unfortunately you can't. The Java VM being debugged only listens on IPv4. This is a known issue and is in Oracle's documentation:

The current implementation on the target VM side only supports IPv4, but this could change in a future release so that both IPv4 and IPv6 are supported.

One way to work around this would be to have a program (such as xinetd or rinetd for *nix-based servers) installed on the host, listening on IPv6, and forwarding connections to the IPv4 port that the JVM is listening on.

like image 134
Michael Hampton Avatar answered Jan 22 '26 13:01

Michael Hampton



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!