Answer the question
In order to leave comments, you need to log in
How to build a TCP to UDP bridge and back on Windows?
There is a GSM modem (SIM800) (client) and a Windows PC (server).
On the router to which the PC is connected, port forwarding is configured (60100 TCP - 60100 TCP) on which the GSM modem is knocking.
There is software that works on two UDP ports on a Windows PC (60102 UDP for transmission and 60103 UDP for reception).
The question is how to bind TCP port 60100 to two UDP ports 60102 and UDP 60103?
Partially solved the issue using socat for Windows .
Command (TCP -> UDP1)
socat tcp4-listen:60100,reuseaddr,fork UDP:127.0.0.1:60103
socat tcp4-listen:60100,reuseaddr,fork UDP:127.0.0.1:60103 | socat udp4-listen:60102,reuseaddr,fork tcp:localhost:60100
socat tcp4-listen:60100,reuseaddr,fork UDP:127.0.0.1:60103 | socat udp4-listen:60102,reuseaddr,fork tcp:192.168.115:60100
Answer the question
In order to leave comments, you need to log in
Do you have the modem itself as a client or is it the device behind the modem?
If you raise a VPN server on a Windows PC on the TCP / 60100 port, and the device behind the modem is the VPN client, then you can push any traffic into the VPN pipe by simply accessing the Windows PC at the internal VPN address.
socat tcp4-listen:60100,reuseaddr,fork UDP:127.0.0.1:60103!!UDP:127.0.0.1:60102
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question