+ AA6YQ comments below
The connection works across the lan, and is not localhost.
Occassionly the network connection is lost for a short period and then auto restored by the router.
+ Thanks. Why is the connection being lost? Why is the error message "invalid udp address/port" rather than "connection lost"?