You are here : python_3socketsocketgetservbyport

socket.getservbyport() - socket

Translate an Internet port number and protocol name to a service name for that
service.  The optional protocol name, if given, should be 'tcp' or
'udp', otherwise any protocol will match.


Syntax

socket.getservbyport(port[, protocolname])


Example


Output / Return Value


Limitations


Alternatives / See Also


Reference