Ping the service with out port number on remote network

I got the service status through nc on remote network but 2 services doesn't have port number.how to get the other 2 services status with out port number .pls provide the solution to me.

I need to develop with is in a script

Hi all,

  Can anyone have a solution,Please guide me.
Moderator comments were removed during original forum migration.