How-to · Advanced · 3 min read
Serial Device Servers
Connect RS485 and RS232 Devices to Ethernet and Wi-Fi
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
A serial device server turns an RS485 or RS232 port into a network connection. Set the serial parameters to match the device, choose TCP server, client or UDP mode, and give the server a fixed IP. In Modbus gateway mode it converts Modbus RTU to Modbus TCP so SCADA and Home Assistant can read serial meters over Ethernet or Wi-Fi.
Key specs at a glance
- Serial ports
- 1 to 8 RS485/RS232/RS422 ports
- Network
- Ethernet, PoE or Wi-Fi
- Modes
- TCP server/client, UDP, MQTT, Modbus RTU to TCP
- Settings
- Baud rate, parity, data and stop bits
- Isolation
- Optional 1.5 to 3 kV isolation protects against surges
- Power
- DC input or PoE
Working modes
The mode decides who starts the connection.
| Mode | How it works | Use for |
|---|---|---|
| TCP server | Server waits for your software to connect | A PC or PLC polls the serial device |
| TCP client | Server connects out to your host | Cloud or central server collects data |
| UDP | Sends datagrams | Simple broadcast data |
| Modbus gateway (RTU to TCP) | Converts between Modbus RTU and Modbus TCP | SCADA, Home Assistant, PLCs |
| MQTT | Publishes serial data to a broker | IoT dashboards |
| Virtual COM port | Driver on the PC mimics a local serial port | Old software that needs a COM port |
- TCP server
- How it works:
- Server waits for your software to connect
- Use for:
- A PC or PLC polls the serial device
- TCP client
- How it works:
- Server connects out to your host
- Use for:
- Cloud or central server collects data
- UDP
- How it works:
- Sends datagrams
- Use for:
- Simple broadcast data
- Modbus gateway (RTU to TCP)
- How it works:
- Converts between Modbus RTU and Modbus TCP
- Use for:
- SCADA, Home Assistant, PLCs
- MQTT
- How it works:
- Publishes serial data to a broker
- Use for:
- IoT dashboards
- Virtual COM port
- How it works:
- Driver on the PC mimics a local serial port
- Use for:
- Old software that needs a COM port
Setup steps
- 1Connect A to A and B to B (RS485), or TX, RX and ground (RS232), with the cable of the correct type.
- 2Give the server a fixed IP address on the same subnet as your computer.
- 3Set serial settings on the server to match the device exactly.
- 4Choose the work mode and port number.
- 5Test with a Modbus tool or a TCP terminal.
- 6Add termination if the RS485 cable is long. See RS485 and RS232.
What to look for
and the serial standards you need.
between serial and network side for noisy industrial sites.
PoE simplifies wiring, DC input suits panels.
DIN rail for cabinets.
password protection and firmware updates. Never expose a serial server directly to the internet.
support if you use PLC or SCADA tools; see Modbus on ESP32.
Troubleshooting
check wiring polarity and the baud rate and parity.
serial settings mismatch.
network cable, IP clash or timeout setting too short.
one Modbus master at a time; lengthen the timeout.
most servers allow only a limited number of simultaneous TCP connections.
Try it: Serial transfer time calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Setting the wrong parity on the server.
- Exposing the server directly to the internet.
- Two masters polling the same RS485 bus.
- Using a shared IP address that clashes with another device.
- Forgetting termination on a long RS485 run.
Frequently asked questions
What is Modbus RTU to TCP?
A conversion that lets network software talk to serial Modbus devices.
Do I need a driver?
Only for virtual COM port mode on a PC. TCP mode needs none.
Can I use Wi-Fi instead of Ethernet?
Yes, but wired Ethernet is more reliable in industrial sites.
How many devices can share one RS485 port?
Up to 32 loads by default, more with repeaters.
Is isolation important?
Yes for long cables or noisy sites, because it protects the network and the device.
Parts for this guide
Calculators
Terms in this guide
Projects that use it
Put this into practice: 1 step-by-step build in our project library uses parts from this guide.
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.




