fix net not available
added test/ping
javadoc