The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-21-2004
Registered User
 

Join Date: Dec 2003
Posts: 7
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)
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-21-2004
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,452
Firewalls let some stuff get through and they block some other stuff. You need to configure your firewall to let your connection through.
Reply With Quote
  #3 (permalink)  
Old 03-22-2004
Registered User
 

Join Date: Oct 2003
Posts: 69
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.
Reply With Quote
  #4 (permalink)  
Old 04-03-2004
Registered User
 

Join Date: Apr 2004
Posts: 2
i need some example ,thank
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:51 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0