侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

查看本地监听端口和远程端口

2023-11-11 星期六 / 0 评论 / 0 点赞 / 56 阅读 / 2549 字

查看本地监听端口 E5450:~/opengrok_env$ lsof -i COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME gvfsd-smb

查看本地监听端口

E5450:~/opengrok_env$ lsof -i
COMMAND    PID      USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
gvfsd-smb 2020 zhixinlyl   11u  IPv4   26164      0t0  TCP 30.96.91.172:46732->30.96.88.255:netbios-ssn (ESTABLISHED)
adb       2172 zhixinlyl    6u  IPv4   31071      0t0  TCP localhost:5037 (LISTEN)
firefox   2406 zhixinlyl   52u  IPv4   91892      0t0  TCP 30.96.91.172:44132->140.205.32.75:https (ESTABLISHED)
firefox   2406 zhixinlyl   54u  IPv4   78492      0t0  UDP *:48462
firefox   2406 zhixinlyl   55u  IPv6   78494      0t0  UDP *:43172
firefox   2406 zhixinlyl   61u  IPv4 1097190      0t0  TCP 30.96.91.172:46474->119.147.70.227:https (ESTABLISHED)
firefox   2406 zhixinlyl   82u  IPv4 1029131      0t0  TCP 30.96.91.172:45680->42.156.235.98:https (ESTABLISHED)
firefox   2406 zhixinlyl   92u  IPv4   94886      0t0  TCP 30.96.91.172:54268->101.227.160.102:https (ESTABLISHED)
java      4976 zhixinlyl   48u  IPv6  101851      0t0  TCP *:http-alt (LISTEN)
java      4976 zhixinlyl   53u  IPv6  101855      0t0  TCP *:8009 (LISTEN)
java      4976 zhixinlyl   69u  IPv6  100684      0t0  TCP localhost:2424 (LISTEN)
java      4976 zhixinlyl   75u  IPv6  102723      0t0  TCP localhost:8005 (LISTEN)

 

查看远程监听端口

E5450:~/opengrok_env$ telnet www.baidu.com 80
Trying 14.215.177.38...
Connected to www.a.shifen.com.
Escape character is '^]'.

E5450:~/opengrok_env$ telnet www.baidu.com 8080
Trying 14.215.177.37...

 

 

广告 广告

评论区