How to fix the "Connection Refused" error on a Java server¶
The message "Connection Refused: getsockopt" usually appears when the Minecraft client cannot reach the server. On a NexusCloud Java server, the most common cause is that the client has not combined the server address with the port.
Steps¶
- Open the NexusCloud panel and copy your server's Address/IP and Port.
- Combine them into the
ip:portformat, for examplehu-tao.nexuscloud.id:12345, then copy it. - Open Minecraft, go to the Servers list, then Edit your server.
- Remove the old address, then paste the
ip:portstring you copied. - Click Done, then try to join again.
Notes¶
- The port used in the client must match the port shown in the panel exactly. If the panel shows
12345, enterhu-tao.nexuscloud.id:12345, not just12345. - If it still fails, make sure the server is online in the panel and that no firewall is blocking the connection from the player's side.
Help us out
If you found this tutorial useful, please leave a review on Trustpilot! Your rating helps us make more useful guides
Cheers, Team NexusCloud