LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Socket Problem (https://www.linuxquestions.org/questions/linux-networking-3/socket-problem-160617/)

Agent007 03-21-2004 01:49 PM

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)

chort 03-21-2004 02:47 PM

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.

Agent007 03-30-2004 03:53 PM

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 ??


All times are GMT -5. The time now is 09:07 PM.