Guys,
I have a program that receives a data package via socket from a client.
The program detects the IP and client port to send to client a mensage confirmation.
But, when the program send the message back into its socket, it receives the following error message:
Exception in thread "main" java.net.ConnectException: Connection timed out: connect
at java.net.DualStackPlainSocketImpl.connect0 (Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect (DualStackPlainSocketImpl.java:79)
at java.net.AbstractPlainSocketImpl.doConnect (AbstractPlainSocketImpl.java:339)
The code is as follows:
When try the command
occurs the error message.
NOTE: The server has no enabled Firewall.
What could be going wrong?
Thank you,
Fernando