1GETPEERNAME(1)              General Commands Manual             GETPEERNAME(1)
2
3
4

NAME

6       getpeername - get name of connected TCP/IP peer
7

SYNOPSIS

9       getpeername [-n] [-p protocol]
10

DESCRIPTION

12       getpeername prints the IP address and service name (port number) of the
13       remote peer connected to standard input.  The IP address and  the  ser‐
14       vice name are printed on the same line, separated by one space.
15

OPTIONS

17       -n     Don't translate IP addresses and port numbers to names.
18
19       -p protocol
20              Force getpeername to use protocol as the protocol when translat‐
21              ing port numbers to service names.  Protocol can be tcp and udp.
22              Normally,  getpeername  automatically  determines  what  type of
23              socket it is connected to.
24

SEE ALSO

26       getpeername(3).
27

BUGS

29       Only works on IP sockets.
30
31
32
33                                 1997 April 13                  GETPEERNAME(1)
Impressum