This suggests confusion. Every port is available on every IP address, so when you access a NAS at say 192.168.1.2:80 that doesn't 'use up' port 80 on any box except that one. So you can still access the TDC on 192.168.0.50:80 (or whatever IP it is on).
It would, however, "use up" port 80 on his router as seen from the WAN side if the router can do NAT on IP addresses but not map ports: accessing port 80 from the wild internet would map to port 80 on the NAS drive, accessing port 81 to port 81 on the TDC. My Netgear DG834, for example, won't map ports as far as I can see.
Anyway it's the serial port which is interesting on 10001. Easiest way to access that is with telnet:
telnet 192.168.0.50 10001
then enter TDC serial commands. (you could also use nc, but that more binary-oriented then telnet). I can't see the point of messing about with ssh tunnels for this simple access.
Andyhanson said the TDC-provided software could only access "local" IP addresses. He wasn't clear (much confusion) whether he really meant
local or just direct IP addresses rather than domain names. Still, if he really meant local then an SSH tunnel would allow the TDC to appear to be local.
Actually, I suspect that if he typed the IP address of his home router's WAN interface into the TDC software it'd work fine.
Another reason for using SSH would be to avoid exposing the TDC port to any passing port scanner. The chances of anything really malicious (somebody changing settings to cause a stagnation, for example) happening are tiny but there is the chance that it might get DOSed - the Lantronix board seems to only support a single connection, doesn't it?
One thing we didn't discuss was where the SSH daemon was going to run. I was rather assuming that he could SSH into his NAS box.
Ah, checking the original thread I see that the serial protocol is binary rather than ascii based so you'll need to work a little harder to get data out of it. Use the perl tests djh provided, and the module he wrote as a basis for automatable access.
Why not just use the provided software as the OP was trying to do?