Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

launch_gateway and IPv6-only localhost not possible #489

Open
erl987 opened this issue Jun 29, 2022 · 0 comments
Open

launch_gateway and IPv6-only localhost not possible #489

erl987 opened this issue Jun 29, 2022 · 0 comments

Comments

@erl987
Copy link

erl987 commented Jun 29, 2022

Hi,

it does not seem to be possible to launch the Java-side process through launch_gateway and having it listening on an IPv6 localhost address. Digging into the code base, it looks like GatewayServerBuilder is setting the IPv4 address 127.0.0.1 by default. This class is used by launch_gateway but it lacks an option to change the IP-address - or at least the IP-version.

It is actually possible to run py4j on an IPv6 localhost by using a main method such as in ExampleIPv6Application. But unfortunately, we need to use launch_gateway for robust startup of the Java-side process on all platforms.

Did I miss here something, i.e. is there any way to make IPv6 connections possible with launch_gateway.

IPv6 is becoming a hot topic since the US-government controlled IT systems are required to be migrated soon to IPv6-only networks (while it is a bit unclear if this also affects the localhost).

I believe that it would be rather simple to adapt launch_gateway to make it work with a IPv6-only localhost address. I could contribute a pull request if wished.

/Ralf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant