Link to home
Start Free TrialLog in
Avatar of bhermer
bhermer

asked on

Is it possible to port forward with VB.NET sockets?

Is it possible to capture data from one port and foward to another?

so if an application sends a packet on port 2113 I want to intercpt (or copy) it and send it on to port 80

Example code would be nice
ASKER CERTIFIED SOLUTION
Avatar of AkisC
AkisC
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
correction...
'// Create a Form1 windows form

Option Strict On
Option Explicit On
Imports System.Net.Sockets
Imports System.Threading

'// and Declare
Private listener As TcpListener
Private listenerThread As Threading.Thread
Dim PORT_NUM as integer=2113
Avatar of bhermer
bhermer

ASKER

Thanks, I had given up hope on this, I will giove your code a work out and get back to you.
Ben
Avatar of bhermer

ASKER

Sorry for delay, and thanks, that worked out great.
Thanks for the points
Did you find your way to send data to port 80?

I'd love to see your code if you're still around/still have it AkisC?