How to redirect a COM port to LAN using this advanced software solution
Let’s imagine that you have a COM-based barcode reader which is located at a distance from your local computer. You need to access the device from an app installed on your machine. To achieve this, you should follow these simple steps:
- Download Serial to Ethernet Connector and install it on the computer (server) to which the reader is attached physically and your local computer (client) that will reach the device over LAN. Note that a client can be any real or virtual machine running Windows or Linux OS.
- Next, start the program on the server machine, set up the required parameters and create a Server connection by clicking the corresponding button. This will make the reader accessible over the network.
- Then, launch the software on the client and “Connect” to the shared barcode reader over Ethernet.
This is it! Now, all data from the remote device will be available on your computer as if it were your local peripheral.
When you establish a client connection to the server machine, in essence, the software creates a virtual port on the client and connects it to the real physical port of the server PC via a virtual null-modem cable. Once linked, the virtual port copies the behavior of the real port on the remote side.
What is serial over LAN technology?
Serial over LAN (SOL) technology provides the ability to manage networked serial devices over an RS232/RS422/RS485, Telnet, or Secure Shell (SSH) connection. The technology helps users access and communicate with systems that do not have the keyboard/video/mouse support.
Thanks to SOL, it becomes possible to receive data from virtually any remote COM port device no matter the distance. Best of all, the SOL feature eliminates the need for any special cabling, as it allows connecting to COM ports over a wireless network.
SOL technology is often used for forwarding serial over LAN to Windows and Linux platforms and is usually delivered as a component of specialized serial over Ethernet software.
Alternative solutions for remote access to serial ports over LAN
As mentioned before, Serial to Ethernet software is probably the easiest method to access COM over LAN. The software is simple to install and use and it doesn’t require complex configurations and programming skills. Alternatively, you can try sharing your COM ports with a hardware RS232 to LAN converter and see which solution is best for you.
Hardware RS232 to LAN adapter
RS232 to LAN converter (adapter, or device server) is a compact hardware device designed to transform serial data to and from network packets. This solution is a big help for those looking for an easy way to reach serial devices over a local network.
Serial over LAN adapters usually come with a virtual port driver that allows configuring serial connections over Ethernet. The app should be installed on the PC to which your hardware will be connected. With the help of the program, you provide your system with a virtual COM port enabling it to see and access remote serial devices.
SOL with Intel Management Module Command Line Interface and DPCProxy utility.
If you need to connect from a client software running on a management workstation and/or central network proxy to the Baseboard Management Controller (BMC) over LAN, you can do this using Intel Command Line Interface and DPCProxy utility.
Note that DPCProxy utility can run as a Windows service or as a daemon for Linux. You can install it on the management console or in a centralized server. Also, you should initiate a Telnet session from the managing console to DPCProxy, no matter which OS (Windows or Linux) you are running on either system.
To start a telnet session to the remote server, do the following:
- At the command prompt of your OS, type “telnet xxx.xxx.xxx.xxx 623 ”.
- ♦ xxx - the IP address of the system (e.g. a central network server) running the Network Proxy. If it’s a local system, type “localhost” instead.
- ♦ 623 - default UDP port used for Intel Command Line Interface connections.
- Next, enter the IP address of the server (you’re connecting to) at the prompt “Server:”
- After that, provide the BMC username and password for the target system. Once authentication is complete, you should see a message indicating that the login is successful and the “dpccli>” prompt.
- Now, type “console” at the command prompt. This will start its redirection to the SOL Mode
- To terminate SOL, use “~.”