![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problem with socket reading | swap007 | UNIX for Advanced & Expert Users | 2 | 05-20-2008 10:08 PM |
| HTTP Keep-Alive socket problem | imdupeng | High Level Programming | 0 | 03-29-2008 05:11 PM |
| Problem Connecting to Socket | Stevhp | High Level Programming | 6 | 04-30-2007 04:27 PM |
| Problem in HP-Unix while writing into socket | AshokG | HP-UX | 0 | 02-24-2005 10:19 PM |
| [Problem]Reuse port in BSD socket | Namely | High Level Programming | 1 | 11-28-2003 07:36 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Socket Problem
Hi all,
I have developed server/client application (using C) and tested it on the same machine .. but 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 box 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) |
| Forum Sponsor | ||
|
|
|
|||
|
All applications can talk through a firewall as the firewall is just a configurable piece of hardware or software that allows or disallows network communication based on a set of rules. The firewall is transparent to the application and the underlying socket routines used just as the many routers and switches in between the two machines are transparent. This is the nature of IP packet routing.
However, if what you are talking about is attempting to get your application's communication "through" the firewall you may want to research such things as SOCKS. Many applications can use these "proxy servers" to tunnel through a firewall by authenticating their communication through it. If this is what you want then google SOCKS and I'm sure you'll find out a lot more than can be explained here. |