The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
Google UNIX.COM
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

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-26-2008
Registered User
 

Join Date: Nov 2007
Posts: 6
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
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.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-27-2008
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,069
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Probably run the java, both client and server in debug mode, see what happens. Make sure there are no firewalls on Windows side.
Reply With Quote
  #3 (permalink)  
Old 03-29-2008
Moderator
 
Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,375
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
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.
Reply With Quote
Google UNIX.COM
Reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 02:47 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger

Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102