7
1
I am trying to set up a reverse Telnet (Telnet to COM) on Mac OS X 10.9.5 (Mavericks). The Mac is connected to a serial device. I have no problem accessing the serial device from the Mac using screen:
screen /dev/cu.USBserial
However, I would like to access the device remotely, via Telnet.
I tried using Netcat (nc
) and have limited success. The command I used is:
nc -l 9999 > /dev/cu.USBserial < /dev/cu.USBserial
And then I can Telnet to the device. However, it does not work for two reasons:
- For interactive user interface, the input is essentially line buffered until I hit return.
- All my input is echoed back to me. In real life, the device should the one echoing my input characters.
What is the right way of doing it?
How remotely do you mean by remotely? Do you mean within a LAN or outside from a WAN to the LAN to the reverse Telnet? – JakeGould – 2015-10-02T04:53:40.157
@JakeGould, it really does not matter. It can be as close as another terminal tab or as far as the other end of the world. The issue is not with networking but rather bridging serial and reverse telnet. – some user – 2015-10-02T16:28:30.460