![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| IP Networking Questions involving TCP/IP, Routers, Hubs, Network protocols, etc go here. |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| connect to server using ssh | tungaw2004 | UNIX for Dummies Questions & Answers | 0 | 07-27-2007 07:49 PM |
| Shell Script fails with "can't connect to client" | sseenu79 | HP-UX | 2 | 12-20-2006 06:47 AM |
| Could not connect to the server | srikanthus2002 | UNIX for Dummies Questions & Answers | 4 | 11-28-2006 03:31 AM |
| Connect From VB to SQL Server | Than Chanroeun | SUN Solaris | 0 | 08-04-2006 08:48 AM |
| can client connect() when server in sleep(300); after listen(fd,5); | chenhao_no1 | High Level Programming | 3 | 07-18-2002 06:22 AM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
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. |
| Forum Sponsor | ||
|
|
|
|||
|
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. |
|||
| Google UNIX.COM |