Skip to main content

Step 2: set up COM port links & test

To make this easy, do the following setup OFF the VPN, with both PC's actually on the same LAN, and test with the VPN after verifying the setup.

Due to the nature of serial ports, only one application/device can be connected to a COM port, which is why COM port linked pairs must be used to link applications together. Com0Com makes virtual COM ports in pairs. Both ports are "open" for applications to connect to, and when data is sent into one port, Com0Com shifts it to the other linked port and broadcasts it.

Using Com0Com, make at least 1 virtual COM port pair on both PC's. In this example, the server PC will have the pair set as COM2 & COM3, the radio PC will have COM4 & COM5.

Run this command in a CMD window on the server PC (alternatively , make a matchbatch file for each command, to make setup easy.)

> com2tcp-rfc2217 COM3 41000

Run this command on the radio PC:

> com2tcp-rfc2217 \\.\COM4 192.168.xxx.xxx 41000

Where 192.168.xxx.xxx is the LAN Ip address of the server PC. This will link the radio PC's COM 4COM4 port to the server PC's COM3 port via TCP. Open a PuTTY window on both PC's, and link them to the open COM port on the PC (COM2 and COM5). Anything you type into one PuTTy session should appear in the other. If you can do that, the link is working.

Note that this method uses unsecured telnet to transfer data, which is why a VPN is used instead of exposing port 41000 to the wider internet via the home router.

Connect the radio laptop back to the VPN on the hotspot like in Step 1 to verify the link still works over the internet.

Next, plug the radio into the radio PC. In this example, the radio uses a REAL serial port, and is connected to COM1 (a virtual serial port might have a higher number like COM6, for example).

Set up the Telnet COM link using the two commands as above, but on the radio PC, open up a seperate CMD window and run the following command:

> hub4com \\.\COM1 \\.\COM5

The chain of connections now looks like so:

radio COM <--> Virtual COM5 <--> Virtual COM4 <--> Telnet via TCP <--> Virtual COM3 <--> Virtual COM2 <--> RCForb Server

Note that