Skip to content
Contents
GuidesOpenWrt

ser2net reports bad number when bound only to 127.0.0.1

When ser2net is bound only to the loopback address, it shows "bad number". First, verify that the configuration generation did not concatenate the address and port into a field that accepts only numbers.

Applies to · OpenWrt 25.12.6 · ipq40xx/generic · ser2net · /dev/ttyUSB0

What to check

Distinguish between parameter requirements for numeric-only port fields and separate listening address fields, and inspect the generated ser2net configuration.

Connect over Ethernet and run the following commands in an SSH session on the router.

logread -e ser2net
ls -l /dev/ttyUSB0

How to interpret the result

Open the actually used ser2net.yaml file and check the listen address and port 16638. Correct the configuration by removing or replacing any values that include 127.0.0.1. Ensure the fields are accurate, then verify the current version's listen syntax and serial device settings. Keep the configuration limited to local machine listening only.

Verify and recover

Confirm that ser2net listens only on loopback and that an authorized local application can use the serial port. Restore the previous configuration if the binding is wrong.

Related guide · Identify a new device from OpenWrt lease and access logs

Explore hardware

Comments