Configuring the R400N / R400NG for UDP and TCP connection
The internal Ethernet module of the R400N / R400NG can be configured in many ways. This article will explain the most common setups: TCP and UDP – server and client mode.
Connect to your R400N / R400NG via your browser
To connect to the web interface of your R400N / R400NG via your browser you first need to find out the IP address of your unit. Therefore, connect your unit to the same network your laptop / computer is connected to and start the program “Digi Device Discovery” from the CD delivered with your unit or downloaded from our Software downloads section. Once successfully started, press the “Refresh View” link in the left menu until your R400N / R400NG device appears in the list:
Double-click the entry found and the web interface should open in your browser. Alternatively, note the IP address of the entry found and enter it in the address field of your browser.
The web interface will appear with a login window. Use the following login details:
- User: root
- Password: dbps
The R400N / R400NG are pre-configured as TCP server. There should be nothing to set up. To confirm the settings click on “serial port” in the menu on the left hand-side. Confirm that “TCP Sockets” is selected as port profile.
- Under “Basic Serial Settings” the baud rate should be set to 38400 baud:
For TCP server:
- Under TCP Server settings the port for the raw data is: 2101
When connecting to the unit from a TCP client port 2101 is the port to use.
For TCP client:
For the client settings enable “Automatically establish TCP connections” and enter the IP address and port of the server to connect to. For service select “RAW TCP”.
UDP server / client
To set the unit up for UDP click on “serial port” in the menu on the left hand-side. Select “UDP Sockets” as your port profile.
Under “Basic Serial Settings” select 38400 as your baud rate:
For UDP server:
Select “Enable UDP access… ” and enter the port you would like to use.
For UDP client:
For client settings select “Automatically send serial data”, enter the details (description, IP address and port) into the fields and press “Add”.