D
D
diger_742013-02-16 10:48:14
linux
diger_74, 2013-02-16 10:48:14

Serial port from Linux to Windows over TCP/IP

Good afternoon community!

I am looking for the following: I need to forward a COM port from a Linux machine to a Windows server. All the solutions that I found are based on the fact that a daemon (ser2net, serialproxy, socat, etc.) is launched on a Linux machine and then a service installed on a Windows server (Tibbo, HW VSP3) is connected to it. The problem with this solution (for me) is that the Linux machine has a dynamic address (via DHCP), and the server software for Windows requires you to specify the client address in advance.

Now the question is: is there a solution where the Windows server software listens on a specific TCP port (for example) and accepts connections from a Linux client. Well, on the Linux client, the address of the server would be indicated.

PS I apologize for the somewhat chaotic explanation. If you need more information, I'll be happy to answer.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vitaly Peretyatko, 2013-02-16
@viperet

Make a Linux machine with a dynamic IP a permanent domain name. And connect through it

W
Wott, 2013-02-16
@Wott

1. You can ask the DHCP server admin to fix the linux address of the machine
2. You can use the name and not the address, and if there is no Linux in DNS, you can use dyndns or a similar service
3. You can forward the tcp port from Linux to Windows by name - look at tcp proxy, like as in the last windows there is a built-in one
. I didn’t understand about connecting a client from Linux - the client seems to be on Windows?

T
theaspin, 2013-02-16
@theaspin

One option, if the loss of part of the data is not terrible, is to transfer data about the IP change to Windows.
Another option is to write the client/server yourself. In general, the task is trivial, you can do it in 1 day.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question