Your Universal Remote Control Center
RemoteCentral.com
Custom Installers' Lounge Forum - View Post
Previous section Next section Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Topic:
forwarding TCP port to UDP port
This thread has 5 replies. Displaying all posts.
Post 1 made on Monday October 27, 2014 at 15:36
Fiasco
Senior Member
Joined:
Posts:
July 2009
1,282
Possible in a router (have a cisco rv024g)?

I'm using netcat to do it on my Talon DVR (forward incoming TCP port 5000-5004 to UDP ports 5000-5004) for POS text insertion.

Was just wondering if it was possible to do it within the router instead of having netcat running on the DVR.
Pump House on Facebook: [Link: facebook.com]
OP | Post 2 made on Saturday December 13, 2014 at 22:29
Fiasco
Senior Member
Joined:
Posts:
July 2009
1,282
Ended up using a program called socat. Netcat spawned a new process on every connection and Socat only spawns a process for each port you want forwarded.
Pump House on Facebook: [Link: facebook.com]
OP | Post 3 made on Saturday December 13, 2014 at 22:41
Fiasco
Senior Member
Joined:
Posts:
July 2009
1,282
My socat command lines (if anyones interested). These are in a (*.bat) windows batch file which is executed at startup.

start /B c:\users\dvruser\desktop\socat\socat.exe TCP-LISTEN:5001,fork UDP:192.168.1.20:5150
start /B c:\users\dvruser\desktop\socat\socat.exe TCP-LISTEN:5002,fork UDP:192.168.1.20:5151
start /B c:\users\dvruser\desktop\socat\socat.exe TCP-LISTEN:5003,fork UDP:192.168.1.20:5152
start /B c:\users\dvruser\desktop\socat\socat.exe TCP-LISTEN:5004,fork UDP:192.168.1.20:5153
Pump House on Facebook: [Link: facebook.com]
Post 4 made on Saturday December 13, 2014 at 23:22
Daniel Tonks
Wrangler of Remotes
Joined:
Posts:
October 1998
28,780
I remember researching this when you made your original post - unfortunately it doesn't seem to be a common function for a router to allow. Mine offers quite a bit of flexibility, and it *almost* allowed me to make this configuration - but then threw an error at trying to change the port type.
Post 5 made on Sunday December 14, 2014 at 09:59
fcwilt
Senior Member
Joined:
Posts:
September 2003
1,283
Since TCP and UDP are different protocols simple port forward isn't going to work - you need something to try and convert TCP to UDP.
Regards, Frederick C. Wilt
Post 6 made on Sunday December 14, 2014 at 11:50
BigPapa
Super Member
Joined:
Posts:
October 2005
3,139
Many routers have a BOTH function on TCP UDP.

You may also be able to try port triggering to create a rule to flip it. 


Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.

Hosting Services by ipHouse