Playing on Windows, LCI Release, using newest Java 21 me and my friend are unable to connect to each other via online lobbies.
During troubleshooting via reading logs it seems that when attempting to connect us, forge tries to connect to port 0 instead of a proper port.
Reinstalling forge and java, hosting as any of us and using java8 version did not resolve the issue.
Pasting the (to my knowledge) relevant fragment of the log below, due to discord character limitations posting the beginning and end of the fragments between socket exceptions due to improper ports.
I would be most grateful for assistance.
INFO: <<< UPnP service started successfully
java.io.UncheckedIOException: java.net.SocketException: Can't connect to port 0
at java.base/sun.nio.ch.DatagramSocketAdaptor.connect(DatagramSocketAdaptor.java:124)
at java.base/java.net.DatagramSocket.connect(DatagramSocket.java:472)
.
.
.
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.net.SocketException: Can't connect to port 0