Client wont connect to server

Hey all

Ive written a program for a Java program in college. just something basic where a client connects to a server through java socket programming. Yet when i run the server on Ubuntu and place and run the client on a windows XP machine, they cannot connect to each other. If the are on the same OS it works fine.

Is there any quick work around to solve the cross platfomr issue.

Probably run the java, both client and server in debug mode, see what happens. Make sure there are no firewalls on Windows side.

As Java socket programming is platform independent, I am not inclined to think that this has anything to do with different OS.

On the Linux server side, run a "netstat -tlnp" (I assume that is TCP-based) and make sure the server port is really bound and listened to. Also, try to use packet sniffer such as tcpdump and wireshark (GUI) to make sure the packets are sent as expected. These are the most effective ways to debug socket programming problems.