FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour sockets and firewalls
Posts: 204
Joined: Mon Oct 17, 2005 09:09 PM
sockets and firewalls
Posted: Fri Jun 03, 2011 10:24 PM

I have a static IP address of 207.119.xxx.xxx

there is a firewall (DLink) that connects to the internet and stands between this connection and my internal local area network.

outside the firewall is a web-server. it's internal IP is 192.168.1.3
inside the firewall is a file-server - it's internal IP is 192.168.1.7

I use sockcli.prg and sockserv.prg
nport is randomly selected to be 2525

if i try to connect to 207.119.xxx.xxx:nport - (webserver outside firewall) - no connection
if i try to connect to 192.168.1.3:nport (webserver outside firewall) - no problem

if i try to connect to 192.168.1.2 (file server on lan inside firewall )with windows firewall ON and McAfee virus ON - no connection.
if i try to connect to 192.168.1.2 (file server on lan inside firewall ) with windows firewall OFF and McAfee OFF - no problem.

question - I need use sockserv.exe to monitor requests from the "outside" world.
I want sockcli.exe (or other socket accplication client) to call the 207.119.xxx.xxx:2525 socket. My sockserv.exe must process these requests and have access to "inside" the firewall.

What's the typical configuration of this type of environment so outside calls can be made to an public IP:port, directly with sockets? where should sockserv.exe reside and how should firewall and virus settings be configured?

anybody have any ideas?

thank you in advance.

Don Lowenstein
www.laapc.com
Posts: 368
Joined: Sun May 31, 2009 06:25 PM
Re: sockets and firewalls
Posted: Sat Jun 04, 2011 11:37 AM

You should configure your DLINK to NAT your internal address/port on the firewall. All the incoming conections to the ROUTER/FW on that port will be sent to your internal IP.

Regards,



André Dutheil

FWH 13.04 + HB 3.2 + MSVS 10

Continue the discussion