Proxyman抓包抓包localhost


Proxyman是一款直觀易用的 HTTP 調試工具,擁有出色的 UI 和交互設計, 性能強勁資源占用低。自動生成證書,輕松在 Mac 端啟用 SSL 代理抓包,並且集成移動設備的調試。

由於localhost相關的請求報文將不會經過實際的網絡適配器,需要特殊配置才能抓包localhost。
參看grpc的數據包監控

解決方案1:使用localhost.proxyman.io

Proxyman uses Cloudflare and sets the DNS of localhost.proxyman.io to 127.0.0.1 (localhost). As a result, Proxyman can capture the local traffic as usual

舊URL 新URL
localhost:3000 localhost.proxyman.io:3000
localhost:8080 localhost.proxyman.io:8080

解決方案2:修改Host文件

Open etc/hosts file

$ sudo vim /etc/hosts

Add Domain Name with both IPv4 and IPv6 (You can change the proxyman.local with your name)

127.0.0.1 proxyman.local
::1 proxyman.local

Make sure you add both IPv4 (127.0.0.1 proxyman.local) and IPv6 (::1 proxyman.local). 
Otherwise, you might encounter the 5 seconds DNS delay.

Read more at https://superuser.com/a/1596341

參考:
https://docs.proxyman.io/troubleshooting/couldnt-see-any-request-from-localhost-server


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM