Recommended solutions based on your search
Check if your firewall is not blocking your connection. If it's not, you might need to explicitly set advertised.host.name to
advertised.host.name = yourIpAddress, this forces the hosts returned to be the resolvable IP address of your VM.
Solutions on the web
java.net.ConnectException: Connection refused
at sun.nio.ch.Net.connect(Native Method)