The getservbyport function gets the service record given its numeric PORT and PROTOCOL.
getservbyport PORT, PROTOCOL