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

Version 6 does not support ipv6, version 5.5 supported ipv6 #290

Open
NightFury37 opened this issue Aug 3, 2023 · 2 comments
Open

Version 6 does not support ipv6, version 5.5 supported ipv6 #290

NightFury37 opened this issue Aug 3, 2023 · 2 comments

Comments

@NightFury37
Copy link

NightFury37 commented Aug 3, 2023

I am using activej version 6.0-beta1

Examples (http auth server) in v5.5 work when I use ipv4 or ipv6 address.
Examples (http auth server) in v6 only work when I use ipv4 address, but do not work when I use ipv6 address.

When tried using ipv6 address, ERR_CONNECTION_REFUSED is returned.

@eduard-vasinskyi
Copy link
Contributor

Hi, @NightFury37

In version 5.5 HttpServerlauncher (parent class for the AuthLauncher class) was configured to listen on address “*:8080” by default. This means that the server could be accessible from either ipv4 or ipv6 address (127.0.0.1:8080 or [::1]:8080).

In version 6.0 we have explicitly set the default listen address to be “localhost:8080”. So, the server can only be accessible via ipv4 address.

To make your server listen on ipv6 address you can configure it by adding http-server.properties file to your class path with one of the following properties:
http.listenAddresses=[ipv6_address]:8080 // to listen on ipv6 address
or
http.listenAddresses=ipv4_address:8080,[ipv6_address]:8080 // to listen on both ipv4 and ipv6 addresses
or
http.listenAddresses=*:8080 // to listen on any local address

Alternatively, you can set listen addresses as a VM option: -Dconfig.http.listenAddresses=...

@NightFury37
Copy link
Author

Thank you. It worked.

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

No branches or pull requests

2 participants