I use lsof -i to list all the opened socket file descriptor.And I use this command to list all the listened port, But I have some doubt about the output messages.
mycmd 8983 userw 5u IPv4 39189 TCP *:bmc-grx (LISTEN)
This line give the port name bmc-grx instead of port number.
How could I know the listened port number instead of the port mapped name?
Thanks in advance!