I'm running a localhost server at port 3000, but I couldn't see any traffics from the Proxyman app
I'm developing a local server that makes requests to the Internet, but none of them show on the Proxyman app
By default, all localhost traffic does not go through HTTP/HTTPS Proxy on macOS, so that we couldn't see any requests or responses on the Proxyman app.
There are two solutions to fix it:
Use localhost.proxyman.io instead of localhost
Proxyman uses Cloudflare and set the DNS of localhost.proxyman.io to 127.0.0.1 (localhost). As a result, Proxyman can capture the local traffic as usual ✅
Or Map localhost to the domain name in
$ sudo vim /etc/hosts
2. 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
3. Save the file with
4. Follow this guideline to make sure
*.local traffic isn't in the proxy bypass list
5. Access your localhost server by http://proxyman.local:3000 (replace 3000 with your localhost ports)
6. Enjoy debugging!