cgi-perl port redirect?

Go Terps

Senior member
Mar 11, 2000
232
0
0
not sure if this is possible but here goes...
I want to receive a http get request on my webserver port 443 (SSL)
and redirect that a program that listens on port 8999... I don't know
if this is possible or how I would go about doing this... any
suggestion are greatly appreciated...
 

teknodude

Member
Apr 11, 2002
186
0
0
If I understand what you're asking correctly then what you're wanting to do is forward any requests to port 443 on your server to port 8999, right?

If that's the case then I use a free program called NetBug++ which can be used to forward individual ports, you'll find it here: http://www.htk.fi/public/akirjavainen/download.html. Now what you want to do, presuming you want to forward requests to port 443 of your server to port 8999 of the same server, is type in the IP address 127.0.0.1 (the local loopback address) and then set the port it should listen to as 443 and the port it should forward to as 8999. Then set it going and minimise it to your system tray.

The handy thing with this program is that it can be run from the command line, so you could set up a little batch script to run on startup. All of this is presuming you are using a Windows server (ick!) such Win2K. If not, the same concepts apply but you'll need to find a suitable equivalent app for your OS (shouldn't be a problem).

Of course the program that listens to port 8999 needs to be configured to do so, but this is specific to the program being used (e.g. in Apache you set the port it listens to in the httpd.conf file).

Hope that helps :)

Simon Plenderleith