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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With