Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Java client times out on connect

hondaPiyushhondaPiyush Posts: 1Member
Hi All

I have written a simple Java program that makes use of sockets to connect to a server (running on Linux in VMware) on the same computer.
If I use the same program directly on the Linux machine where the server is running, it is easily able to connect to the server.

However, when I run it from Windows Vista, it times out while trying to connect. The stack-trace of the exception is as follows:
[color=Red] Connection timed out: connect
at Method)[/color]

I am using the following piece of code to connect to the server:
[color=Blue]socketFd = new Socket("", 3490);[/color]

The Windows firewall is already turned off. It is my home-PC where I am trying to do all the stuff.

Please help me out with this weird problem.

Thanks and Regards,

Sign In or Register to comment.