This function returns the port which corresponds to service for the specified protocol as per /etc/services.
This function can be called statically
The information is taken from your host, not from the remote host you maybe checked with Net_Portscan::checkPort().