In practice, it just tests if the serial contains a ':', which is sufficient to distinguish ip:port from a real USB serial.