LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-06-2004, 07:48 PM   #1
tuttu
LQ Newbie
 
Registered: May 2004
Posts: 4

Rep: Reputation: 0
Unhappy Connection timed out


Hi, I am a newby in linux. I am studing the socket programming in RH9 and wrote a simple tcp client/server program and it works well when I use localhost to test. However, when I test it on two computers, the connection always timed out. I used the example program on "pont.net/socket" to test and got the same problem.
Thus I guessed it is a network configuration problem and found the two computers can not ping each other. While they can both access Internet and they are in the same LAN. Furthermore, when one computer is running in WinXP and another is in linux, the linux one can ping WinXP one while the WinXp one failed to ping Linux. I also tried "netstat -l" command when the client trying to connect to server and found the local address and foreign address are both correct, the state is SYN_SENT. I have tried to set the security lever to be "no firewall" using "system settings->security level" but no change happened.
Could anyone give me some advice how to examine and what should I do next? Any help would be greatly appreciated.
 
Old 08-06-2004, 07:52 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
To be of any assistance we'd need a bit more info
about the networks set-up. Fixed IPs or DHCP, what
the configuration of the interfaces is like, ...

And this thread is being moved to Linux - Networking
where it will get the exposure it deserves.


Cheers,
Tink
 
Old 08-06-2004, 08:05 PM   #3
tuttu
LQ Newbie
 
Registered: May 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the reply, it is DHCP. I used ifconfig to figure out their IP address.
But actually I have no idea which network configuration should be examined and how to examine them.
Could anyone give some suggestions?

Quote:
Originally posted by Tinkster
To be of any assistance we'd need a bit more info
about the networks set-up. Fixed IPs or DHCP, what
the configuration of the interfaces is like, ...

And this thread is being moved to Linux - Networking
where it will get the exposure it deserves.


Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
aMSN connection timed out d0lle Debian 1 09-05-2005 04:16 PM
connection timed out. moby Linux - Networking 0 10-13-2004 08:45 AM
connection timed out;no servers could be reached nitin34847 Linux - Networking 0 05-23-2004 01:47 AM
ssh: Connection timed out. [from school] nixel Linux - Networking 2 05-19-2004 01:21 PM
Connection timed out Valluvan Programming 6 12-22-2002 03:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration