PDA

Click to See Complete Forum and Search --> : Port Mapping


VBPhil
Jun 9th, 2001, 07:31 AM
Hi,

I need someway of mapping ports in VB.

What I am trying to do is receive data on a particular port on my PC, and forward it out to another computer on the net...

So - PC on my LAN sends data to a pre selected port on my PC
my PC says hmmmmm, looks good - and forwards it to a preset port on a computer on the internet

Any ideas?

Thanks

Philip :)

rekcus
Jun 10th, 2001, 10:28 PM
Sounds like a proxy server to me. To accomplish that I would run a TCP Server on "my pc" to receive data on a particular port. To send data to a Net pc on the Internet, first establish a TCP connection between "my pc" and the Net pc. Then, send whatever it is to this pc on your chosen port.
Your connection to the Net pc should be initiated by a client TCP on "my pc". Therefore, you need a TCP Server to be running on the Net pc.

Regs,