in reply to ping problem

The Net::Ping documentation contains an example of how to check the web port. If your code is based on that example and still doesn't work, then try including it in your question so we don't have to try and guess what is wrong with it.