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 03-21-2004, 01:49 PM   #1
Agent007
LQ Newbie
 
Registered: Oct 2003
Posts: 28

Rep: Reputation: 15
Socket Problem


Hi all,
I have developed server/client application (using C) and tested it on the same linux box .. but at work when I deploy them on different machines I get connection timeout.

Well .. server machine and client machine exists on different network segments, so there is a linux firewall to route traffic (all ports are open on it)

so my question is there anyway that client program can communicate with my server program via the firewall .. is there any function in C for this kind of setup

(I searched alot but didn't find anything useful .. so If it is not possible .. how come there exists so many server/client application that can communicate via firewalls)
 
Old 03-21-2004, 02:47 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
If you have both the client and the server on the same segment, does it work? If so, it's definitely a problem with your network setup. The possible causes are either that the firewall is not properly forwarding packets (for a variety of reasons) or that you do not have a route from the client to the server, or vis versa.
 
Old 03-30-2004, 03:53 PM   #3
Agent007
LQ Newbie
 
Registered: Oct 2003
Posts: 28

Original Poster
Rep: Reputation: 15
sorry for my late reply,

and yes, If I have both the client and the server on the same segment, everything works fine.

I don't know if the firewall is not properly forwarding my packets or not, because when I use another protocol such http,ping,telnet, ftp - they work well .. but some other protocols such as snmp doesnt work ..

the weird thing is .. when i use port 80 (http) or 21 (ftp) or 23 (telnet) (which those applications works for different segments), my program still doesn't work

anybody can help me please ??

Last edited by Agent007; 03-30-2004 at 04:02 PM.
 
  


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
Socket problem maevious Programming 2 11-26-2005 03:21 PM
cannot read data at server socket, though client socket sends it jacques83 Linux - Networking 0 11-15-2005 01:58 PM
Unable to connect to UNIX socket /tmp/.esd/socket error while using grip dr_zayus69 Linux - Software 4 08-23-2005 07:28 PM
socket problem event Linux - Networking 2 08-03-2004 01:23 AM
socket programming problem bgraur Programming 2 03-09-2003 09:05 AM

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

All times are GMT -5. The time now is 06:19 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