Proxyman
HomepageDownload
  • Overview
  • Changelog
  • License
  • License Manager
  • Raycast
  • Command-line
  • Security Compliance
  • Proxyman iOS
    • Proxyman for iOS
    • Map Local for iOS
    • Breakpoint for iOS
    • Tutorial for iOS
      • Map Local for iOS Tutorial
      • Breakpoint for iOS Tutorial
  • Debug on Devices
    • macOS
    • iOS Device
    • iOS Simulator
    • tvOS & watchOS
    • Android Device & Emulator
      • Automatic Script for Android Emulator
      • Sample Android Project
    • Firefox
    • Java VMs
    • Python
    • Ruby
    • NodeJS
    • Rust
    • Golang
    • React Native
    • Flutter
    • HTTP Clients
    • Docker
    • ElectronJS
    • NextJS (fetch)
  • Automatic Setup
    • Automatic Setup
    • Manual Setup
    • Troubleshooting
  • Atlantis
    • Atlantis for iOS
  • BASIC FEATURES
    • Proxyman Proxy Helper Tool
    • Request / Response Previewer
    • SSL Proxying
    • Bypass Proxy List
    • Import / Export
    • Content Filter
    • Multiple Tabs
    • Horizontal/Vertical/Window Layout
    • Copy as
    • Custom Previewer Tab
    • Custom Header Column
    • Regex (Regular Expression)
    • Filter JSON Response
    • Highlight by Color and Add Comment
    • Import / Export Settings
    • Multipart Form-Data Previewer
    • JSONPath
    • Customize Toolbar
    • Localization
    • Quick Preview
  • ADVANCED FEATURES
    • Repeat
    • Edit & Repeat
    • Compose new Request
    • No Caching
    • Breakpoint
    • Breakpoint Templates
    • Map Local (File)
    • Map Local (Directory)
    • Map Remote
    • External Proxy
    • Save Session
    • Protobuf
    • WebSocket
    • Clear Session
    • Block List
    • Allow List
    • Charles Proxy Converter
    • Custom Certificates
    • GraphQL
    • Network Conditions
    • Multiple Filters
    • Custom Filters
    • Publish to Gist
    • Reverse Proxy
    • Code Generator
    • Diff
    • Access Control
    • DNS Spoofing
    • SOCKS Proxy
    • Swagger OpenAPI
    • TLS Key Logging
  • Proxyman Windows
    • Install Certificate
    • WSL
  • Scripting
    • Scripting
    • async/await Request
    • Addons
    • Built-in JS Libraries
    • Write your own Addons
    • Snippet Code
    • Environment Variables
  • Troubleshooting
    • Proxyman does not work with VPN apps
    • My Remote Devices (iOS/Android) could not connect to Proxyman?
    • iOS 16 and iOS 17 issues
    • SSL Error from HTTPS Request/Response
    • I could not see any requests from my localhost server
    • I could not see any HTTP traffic from my NodeJS, Python, or Ruby scripts
    • *.local requests do not appear on Proxyman
    • I couldn't see any traffics on Proxyman
    • I couldn't see any requests from 3rd-party network libraries
    • [Breakpoint] Modify Request/Response by Raw Message
    • Could not change Proxyman App Icons
    • Lost data after updating Proxyman app?
    • Proxyman consumes too much RAM & unresponsive
Powered by GitBook
On this page
  • 1. Problem: I develop a local NodeJS, Ruby, or Python Backend at http://localhost:3000, but when I visit http://localhost:3000 from Google Chrome, Safari -> There is no traffic on the Proxyman app.
  • 2. Solution
  • Solution 1: Map localhost to the domain name in /etc/hosts (recommended ✅)
  • Solution 2: Use localhost.proxyman.io instead of localhost
  1. Troubleshooting

I could not see any requests from my localhost server

Fix why localhost request/response doesn't appear on Proxyman

PreviousSSL Error from HTTPS Request/ResponseNextI could not see any HTTP traffic from my NodeJS, Python, or Ruby scripts

Last updated 7 months ago

1. Problem: I develop a local NodeJS, Ruby, or Python Backend at http://localhost:3000, but when I visit http://localhost:3000 from Google Chrome, Safari -> There is no traffic on the Proxyman app.

Why does this happen? By default, on macOS, all localhost requests don't go through the System HTTP Proxy. Therefore, there is no traffic recorded by Proxyman app.

2. Solution

There are two solutions to fix it: You should follow either one of the following solutions.

Solution 1: Map localhost to the domain name in /etc/hosts (recommended ✅)

  1. Open etc/hosts file with Vim or VS Code.

$ sudo vim /etc/hosts

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

127.0.0.1 proxyman.debug
::1 proxyman.debug

3. Save the file with sudo permission

4. Access your localhost server by http://proxyman.debug:3000 (replace 3000 with your localhost ports)

6. Enjoy debugging!

Solution 2: Use localhost.proxyman.io instead of localhost

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 ✅

For example:

Old URL

New URL

localhost:3000

localhost.proxyman.io:3000

localhost:8080

localhost.proxyman.io:8080

...

...

If you use a local as a suffix, e.g. proxyman.local, make sure to remove the `*.local` from the Bypass Proxy List ().

Instruction
Add proxyman.debug in /etc/host