I could not see any requests from my localhost server
- I'm running a localhost server at port 3000, but I couldn't see any traffic 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
If you access your localhost backend, which is written by NodeJS, Python, Ruby on Rails, etc, you might encounter this problem.
By default, all localhost traffic does not go through HTTP/HTTPS Proxy on macOS, so we couldn't see any requests or responses on the Proxyman app.
If you're using a 3rd-party Networking library, such as curl, java, axios, ... The traffic might not go through the HTTP Proxy by default. Please check this Doc
There are two solutions to fix it: You should follow either one of the following solutions.
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 ✅
$ sudo vim /etc/hosts
2. Add Domain Name with both IPv4 and IPv6 (You can change the
proxyman.localwith your name)
3. Save the file with
5. Access your localhost server by http://proxyman.local:3000 (replace 3000 with your localhost ports)
6. Enjoy debugging!
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.