Linux - NetworkingThis 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.
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.
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)
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.