Virtual Serial Ports Linux

I have some devices that are serial going to ethernet. From there, I need to make a virtual serial port to go TCP -> serial device on linux. I’m having a hard time finding a way to do this. Any suggestions?

You could look at socat:

I have used it to create virtual serial ports on Linux.

You can search for examples on the Internet, for example: … y-pty-link … CP-IP.html