-
Notifications
You must be signed in to change notification settings - Fork 6
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
chore: use IPv4 Stack instead of IPv6 Stack #34
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Maximillian Arruda <dearrudam@gmail.com>
@mpredli01 please, could you help me with that?! |
Hey @dearrudam ... sure thing! I will try to reproduce the issue on my laptop. Perhaps we could schedule a Zoom meeting sometime this week. |
A similar issue has happened at Payara Micro 5.2022.4 according this issue: payara/Payara#6016 |
The addition to prefer IPv4 over IPv6 is not universally applicable and may depend on specific use cases and environments. |
I agree, it's not universally applicable - problems being fixed by preferring IPv4 over IPv6 is typically an environment issue (or an underlying bug in Payara). If there's an issue with Payara operating on IPv6 I'd prefer we find and fix it rather than avoiding it. That being said, I believe Payara Micro should default to IPv4 anyway? |
@Pandrex247 FWIW, I got here because I was trying to start Payara Micro 6.2024.4 on MacOS 14.4.1 using the payara-micro-maven-plugin version 2.3 and it failed to start:
I was able to start it by manually running a java command line which included "-Djava.net.preferIPv4Stack=true". I don't think the properties file mentioned in this thread will have the desired effect in this case because the JDK cmd which is starting the server won't use them as it executes against the WAR file which contains them. I took a look at the link @dearrudam provided which showed the addition of the Java cmd line option to the maven plugin and that does the trick. If that option is not to be added by default I think it should at least be documented well. That would have saved me a chunk of time trying to get the server started the first time. Thanks! |
Hello, Payara friends!
I didn't see any contribution guide or something like that, but I'd like to contribute with a little improvement to the https://start.payara.fish/ that I think Payara users will benefit from.
I faced problems executing the project generated by the portal without setting the JVM to prefer to use the IPv4 stack by default.
I believe these changes can make the Payara users' life easier!
For more info about this issue, please, take a look at here.
Congrats to you all on this project!
Cheers,
Max