T
Thundaran
I'm writing an STMP program that need to connect to an MX server. My
code works fine from a Unix machine, but I need to run it from Windows:
InetSocketAddress address = new InetSocketAddress(server,
25);
Socket socket = new Socket();
socket.connect(address, 5000); // connect with 5 second
timeout
When I run my java program in the command prompt I get this error
message.
java.net.ConnectException: Connection timed out:
How to I get this socket to work?
Do I have to create a bridge between a Java Socket and a Windows Socket?
code works fine from a Unix machine, but I need to run it from Windows:
InetSocketAddress address = new InetSocketAddress(server,
25);
Socket socket = new Socket();
socket.connect(address, 5000); // connect with 5 second
timeout
When I run my java program in the command prompt I get this error
message.
java.net.ConnectException: Connection timed out:
How to I get this socket to work?
Do I have to create a bridge between a Java Socket and a Windows Socket?