How to get the Lantronix XPort IP address programmatically

Usually we use Lantronix DeviceInstaller to get the IP address of the XPort Embedded Ethernet Device Server. I need to add this feature to the Java GUI, since Lantronix DeviceInstaller is strictly a Windows application and my application must run on different Windows and Linux levels. What is the best way to get the IP address of Lantronix XPort Embedded Ethernet device server without using Lantronix DeviceInstaller ?

+4
source share
1 answer

From Michael Lyon with Lantronix technical support:

The discovery process involves sending the hexadecimal 00 00 00 F8 to UDP 30718. If you translate this, all Lantronix CobOS (including XPort) will send a response starting with the hexadecimal 00 00 00 F9. The response from each device is exactly 120 bytes and will always start with the hexadecimal 00 00 00 F9 when the request starts with the hexadecimal 00 00 00 F8. Four hexadecimal values ​​immediately after F9 is the IP address of the responding device in hexadecimal format.

+4
source

Source: https://habr.com/ru/post/1399025/


All Articles