mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-26 16:45:57 +03:00
[GH-ISSUE #1704] remote map no work #1697
Labels
No labels
Discussion
Feature request
In Progress...
Plugins
Waiting response
Windows
Windows
bug
duplicate
enhancement
feature
good first issue
iOS
macOS 10.11
question
wontfix
✅ Done
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Proxyman#1697
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lintiancheng01 on GitHub (Jul 3, 2023).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1704
Description
i want to remote production to local. i use proxyman, it not work. but it's work in charles.
here is my config in proxyman and charles. and the request in proxyman and charles.
Steps to Reproduce
Current Behavior
{

"remote_url": "localhost:8999",
"error": "Request Timeout",
"note": "It seems your host/port is invalid, please double check the Map Remote Config"
}
Expected Behavior
return the result from local server
Environment
@NghiaTranUIT commented on GitHub (Jul 3, 2023):
It's mapped correctly. You can use the URL is mapped to localhost.
Can you verify that you can access your localhost? by open the URL in Google Chrome?
@lintiancheng01 commented on GitHub (Jul 3, 2023):
@lintiancheng01 commented on GitHub (Jul 3, 2023):
i copy the curl from proxyman with the error request. then remove the --proxy http://localhost:9090 , and i can get the response . it means my local server is worked
@lintiancheng01 commented on GitHub (Jul 3, 2023):
i make the same setting in charles , it worked .
@NghiaTranUIT commented on GitHub (Jul 3, 2023):
Do you use another tool at the same time? You can see activate tools in the bottom bar.
I;ve tested again with my localhost:3000, and it works. Maybe there is something that Proxyman could not connect to your localhost server.
@lintiancheng01 commented on GitHub (Jul 3, 2023):
i checked it ,there is another tool matched my url
@lintiancheng01 commented on GitHub (Jul 3, 2023):
@NghiaTranUIT commented on GitHub (Jul 3, 2023):
Can you temporarily disable it?
@lintiancheng01 commented on GitHub (Jul 3, 2023):
@lintiancheng01 commented on GitHub (Jul 3, 2023):
@lintiancheng01 commented on GitHub (Jul 3, 2023):
my request to localhost is ok

@NghiaTranUIT commented on GitHub (Jul 3, 2023):
Let's go back to this screen -> Right Click on the URL -> Repeat
Do you see the request with correct Response? To verify that Proxyman can access your localhost server.
@lintiancheng01 commented on GitHub (Jul 3, 2023):
@lintiancheng01 commented on GitHub (Jul 3, 2023):
i copy the curl and run it in terminal, it not worked.
but i copy the curl and remove --proxy http://localhost:9090 in the end , it worked. i hope this can help you.
@NghiaTranUIT commented on GitHub (Jul 3, 2023):
ok. so basically, Proxyman could not access to your localhost for some reason. Maybe your /etc/hosts have some config that prevents Proxyman.
@lintiancheng01 commented on GitHub (Jul 3, 2023):
so what need i do
@lintiancheng01 commented on GitHub (Jul 3, 2023):
@NghiaTranUIT commented on GitHub (Jul 3, 2023):
I guess you can modify your
etc/hoststo add a new alias name to your localhost. You can follow this doc: https://docs.proxyman.io/troubleshooting/couldnt-see-any-request-from-localhost-serverAfter that, you can access
http://proxyman.local:8999/api/app/user/message/centeron Google Chrome, then you can change your Map Remote to this domainMap To:
@lintiancheng01 commented on GitHub (Jul 3, 2023):
interesting , it worked , why ?
@lintiancheng01 commented on GitHub (Jul 3, 2023):
i remember it worked in charles , and i didn't change the etc/hosts
@lintiancheng01 commented on GitHub (Jul 3, 2023):
i find the why. because the is not setting "127.0.0.1 localhost", so my computer dont kown what is localhost.
so there is two solution
1.change target host to 127.0.0.1
2.add 127.0.0.1 localhost to /etc/hosts
@lintiancheng01 commented on GitHub (Jul 3, 2023):
thanks for reply ! ! ! have a good day.
@NghiaTranUIT commented on GitHub (Jul 3, 2023):
Awesome 👍