Using InetAddress.getLocalHost() Reviewed-by: egahlin, lmesnik
Added test cases for environment and network events Reviewed-by: egahlin