Monthly Archives: December 2007

Finding a Lantronix Device on a Subnet

Any Java app that receives TCP connections will be able to pull out the IP address of the device connecting to it.Processing app:If your router doesn’t disclose the IP table, there are at least five ways you can discover the Xport’s IP; one PC-dependent, one Mac-dependent, and three platform independent.Mac-dependent: download IPNetMonitorX and use it to ping all devices on your subnet…. This program uses the Hypermedia UDP library available at http://hypermedia.loeil.org/processing/ by Tom Igoe Created 18 April 2006 */// import UDP libraryimport hypermedia.net.*;UDP udp; // define the UDP objectint queryPort = 30718; // the port number for the device queryString broadcastIpAddress = “128.122.151.255″; // fill in IP address herevoid setup() { // create a new connection to listen for // UDP datagrams on query port udp = new UDP(this, queryPort);// listen for incoming packets: udp.listen( true );}//process eventsvoid draw() { // twiddle your thumbs.
Continue reading

Posted in Lantronix | Comments Off