OpenWrt Forum Archive

Topic: udp to tcp

The content of this topic has been archived on 27 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello

Is it possible to forward all data sent to UDP port 3000 to internal TCP port 1515?

Janis

update

I'll be more specific - there is ATMEL microprocessor connected to the serial link of WRT54GL router.
Sert2net is configured to TCP 1515. When I telnet from my mac to the router TCP 1515 I can send commands and everything works.
Then iPad have OSC software where sliders and buttons can send commands using OSC protocol (text commands via UDP).

I can not get data from iPad to ATMEL because OSC is UDP and sert2net is TCP !!! Any advice?

- Can I change sert2net to work with UDP, not TCP?
- Can I bridge UDP stream and TCP port?

(Last edited by hms on 14 Nov 2011, 18:10)

No not possible with standard iptables.

It should be possible with "netcat -u" piped to netcat, but I haven't tried it.

Ecc! Thank' s a millon!!!

netcat -u -l -p3000 | netcat  127.0.0.1 1515 is working like charm!

Everything is possible smile

The discussion might have continued from here.