Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-06-2004, 07:48 PM
|
#1
|
LQ Newbie
Registered: May 2004
Posts: 4
Rep:
|
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.
|
|
|
08-06-2004, 07:52 PM
|
#2
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
08-06-2004, 08:05 PM
|
#3
|
LQ Newbie
Registered: May 2004
Posts: 4
Original Poster
Rep:
|
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
|
|
|
|
All times are GMT -5. The time now is 12:17 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|