[GH-ISSUE #1704] remote map no work #1697

Open
opened 2026-03-03 19:53:34 +03:00 by kerem · 23 comments
Owner

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

image

Current Behavior

{
"remote_url": "localhost:8999",
"error": "Request Timeout",
"note": "It seems your host/port is invalid, please double check the Map Remote Config"
}
image

Expected Behavior

return the result from local server

Environment

  • App version: e.g Proxyman 3.9.0
  • macOS version: e.g macOS Monterey
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 <!-- Add relevant code and/or a live example --> <img width="826" alt="image" src="https://github.com/ProxymanApp/Proxyman/assets/129168041/c5797fbc-f1ee-4c93-ac43-8000b5fc9148"> ## Current Behavior <!--- What went wrong? --> { "remote_url": "localhost:8999", "error": "Request Timeout", "note": "It seems your host/port is invalid, please double check the Map Remote Config" } <img width="1032" alt="image" src="https://github.com/ProxymanApp/Proxyman/assets/129168041/35e9b2f2-4cab-4f68-a3a2-f36b59f41aba"> ## Expected Behavior return the result from local server ## Environment - App version: e.g Proxyman 3.9.0 - macOS version: e.g macOS Monterey
Author
Owner

@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?

<!-- gh-comment-id:1617832596 --> @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?
Author
Owner

@lintiancheng01 commented on GitHub (Jul 3, 2023):

image image
<!-- gh-comment-id:1617836371 --> @lintiancheng01 commented on GitHub (Jul 3, 2023): <img width="911" alt="image" src="https://github.com/ProxymanApp/Proxyman/assets/129168041/bd2e5be0-b731-4c9d-a20a-f88f202cacc1"> <img width="760" alt="image" src="https://github.com/ProxymanApp/Proxyman/assets/129168041/f2147c38-bcca-40ea-9ce5-7afcdf1de199">
Author
Owner

@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

<!-- gh-comment-id:1617839804 --> @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
Author
Owner

@lintiancheng01 commented on GitHub (Jul 3, 2023):

i make the same setting in charles , it worked .

<!-- gh-comment-id:1617842102 --> @lintiancheng01 commented on GitHub (Jul 3, 2023): i make the same setting in charles , it worked .
Author
Owner

@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.

Screenshot 2023-07-03 at 17 32 49
<!-- gh-comment-id:1617865248 --> @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. <img width="436" alt="Screenshot 2023-07-03 at 17 32 49" src="https://github.com/ProxymanApp/Proxyman/assets/5878421/631e5dca-f84b-439e-9142-a26eff2503e9">
Author
Owner

@lintiancheng01 commented on GitHub (Jul 3, 2023):

i checked it ,there is another tool matched my url

<!-- gh-comment-id:1617876908 --> @lintiancheng01 commented on GitHub (Jul 3, 2023): i checked it ,there is another tool matched my url
Author
Owner

@lintiancheng01 commented on GitHub (Jul 3, 2023):

image
<!-- gh-comment-id:1617878884 --> @lintiancheng01 commented on GitHub (Jul 3, 2023): <img width="1502" alt="image" src="https://github.com/ProxymanApp/Proxyman/assets/129168041/8ea2dd4c-85ed-4658-9c4b-4af584e9e0cf">
Author
Owner

@NghiaTranUIT commented on GitHub (Jul 3, 2023):

Can you temporarily disable it?

<!-- gh-comment-id:1617880971 --> @NghiaTranUIT commented on GitHub (Jul 3, 2023): Can you temporarily disable it?
Author
Owner

@lintiancheng01 commented on GitHub (Jul 3, 2023):

image i disable the others, but it's also not worked
<!-- gh-comment-id:1617897782 --> @lintiancheng01 commented on GitHub (Jul 3, 2023): <img width="1458" alt="image" src="https://github.com/ProxymanApp/Proxyman/assets/129168041/44afeda3-3d4e-4748-8946-3788b422dbff"> i disable the others, but it's also not worked
Author
Owner

@lintiancheng01 commented on GitHub (Jul 3, 2023):

image
<!-- gh-comment-id:1617900123 --> @lintiancheng01 commented on GitHub (Jul 3, 2023): <img width="990" alt="image" src="https://github.com/ProxymanApp/Proxyman/assets/129168041/9f9f3651-b145-428b-9041-e98e8ac5006f">
Author
Owner

@lintiancheng01 commented on GitHub (Jul 3, 2023):

my request to localhost is ok
image

<!-- gh-comment-id:1617901488 --> @lintiancheng01 commented on GitHub (Jul 3, 2023): my request to localhost is ok <img width="969" alt="image" src="https://github.com/ProxymanApp/Proxyman/assets/129168041/995e7f03-c3e7-488e-85e8-a4fada9c147c">
Author
Owner

@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.

Screenshot 2023-07-03 at 17 45 31
<!-- gh-comment-id:1617901992 --> @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. <img width="850" alt="Screenshot 2023-07-03 at 17 45 31" src="https://github.com/ProxymanApp/Proxyman/assets/5878421/cbf0b81c-152d-4f89-80ca-5c49e8d7347d">
Author
Owner

@lintiancheng01 commented on GitHub (Jul 3, 2023):

image
<!-- gh-comment-id:1617905166 --> @lintiancheng01 commented on GitHub (Jul 3, 2023): <img width="1065" alt="image" src="https://github.com/ProxymanApp/Proxyman/assets/129168041/491944d5-7ef1-49c8-9383-02c8b9281721">
Author
Owner

@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.

<!-- gh-comment-id:1617907662 --> @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.
Author
Owner

@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.

<!-- gh-comment-id:1617908634 --> @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.
Author
Owner

@lintiancheng01 commented on GitHub (Jul 3, 2023):

so what need i do

<!-- gh-comment-id:1617910117 --> @lintiancheng01 commented on GitHub (Jul 3, 2023): so what need i do
Author
Owner

@lintiancheng01 commented on GitHub (Jul 3, 2023):

image there is only my personal data in my hosts, i just remove 127.0.0.1 www.proxy.com
<!-- gh-comment-id:1617919018 --> @lintiancheng01 commented on GitHub (Jul 3, 2023): <img width="794" alt="image" src="https://github.com/ProxymanApp/Proxyman/assets/129168041/283ccb54-0f9a-4438-8e58-50a2e1c220e6"> there is only my personal data in my hosts, i just remove 127.0.0.1 www.proxy.com
Author
Owner

@NghiaTranUIT commented on GitHub (Jul 3, 2023):

I guess you can modify your etc/hosts to add a new alias name to your localhost. You can follow this doc: https://docs.proxyman.io/troubleshooting/couldnt-see-any-request-from-localhost-server

After that, you can access http://proxyman.local:8999/api/app/user/message/center on Google Chrome, then you can change your Map Remote to this domain

Map To:

  • protocol: http
  • host: proxyman.local
  • port: 8999
<!-- gh-comment-id:1617925949 --> @NghiaTranUIT commented on GitHub (Jul 3, 2023): I guess you can modify your `etc/hosts` to add a new alias name to your localhost. You can follow this doc: https://docs.proxyman.io/troubleshooting/couldnt-see-any-request-from-localhost-server After that, you can access `http://proxyman.local:8999/api/app/user/message/center` on Google Chrome, then you can change your Map Remote to this domain Map To: - protocol: http - host: proxyman.local - port: 8999
Author
Owner

@lintiancheng01 commented on GitHub (Jul 3, 2023):

interesting , it worked , why ?

<!-- gh-comment-id:1617950984 --> @lintiancheng01 commented on GitHub (Jul 3, 2023): interesting , it worked , why ?
Author
Owner

@lintiancheng01 commented on GitHub (Jul 3, 2023):

i remember it worked in charles , and i didn't change the etc/hosts

<!-- gh-comment-id:1617959494 --> @lintiancheng01 commented on GitHub (Jul 3, 2023): i remember it worked in charles , and i didn't change the etc/hosts
Author
Owner

@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

<!-- gh-comment-id:1617971622 --> @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
Author
Owner

@lintiancheng01 commented on GitHub (Jul 3, 2023):

thanks for reply ! ! ! have a good day.

<!-- gh-comment-id:1617973385 --> @lintiancheng01 commented on GitHub (Jul 3, 2023): thanks for reply ! ! ! have a good day.
Author
Owner

@NghiaTranUIT commented on GitHub (Jul 3, 2023):

Awesome 👍

<!-- gh-comment-id:1618231686 --> @NghiaTranUIT commented on GitHub (Jul 3, 2023): Awesome 👍
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Proxyman#1697
No description provided.