Proxyman icon indicating copy to clipboard operation
Proxyman copied to clipboard

Issues with running Map Remote. Map Remote not mapping.

Open maciejpigulski opened this issue 1 year ago • 3 comments

Description

I have tried everything and I still cannot get map remote to work.

Simplest possible rule:

image

Give me back the "Welcome to Local Proxyman Server" page.

image

I give up. Help?

maciejpigulski avatar Dec 15 '23 08:12 maciejpigulski

If you use localhost:3000 or something it's not port 9090. It will work.

Localhost and port 9090 are reserved for the local Proxyman server -> It's a reason why you get a Local Proxy Server Response.

If you're not familiar with the Map Remote, you might use the Scripting. Here is the snippet code: https://docs.proxyman.io/scripting/snippet-code#http-to-https

function onRequest(context, url, request) {
    request.scheme = "https";
    request.port = 443; // Don't forget to override the port
    return request;
}

NghiaTranUIT avatar Dec 15 '23 13:12 NghiaTranUIT

I have tried 3000 and 9091 so it is not 9090 but still fail to get the rule to work. This looks like something else is wrong.

image

When trying exact IP instead of localhost has the same result:

image

Haven't tried scripting yet.

maciejpigulski avatar Dec 19 '23 10:12 maciejpigulski

Ok I begin to understand what you have meant.

So for the setup I need to get to work I should never point to the port of ProxyMan, it will just show me the page and won't allow to do any redirects from there. Changing ProxyMan port just changes where it is listening for external calls to install the certificate if needed.

Second thing, assuming ProxyMan running on 9090, my local server on 3000 and from my local server I will be calling some external host say: external.host.url.com I should:

  • turn on macOS proxy Overridden and capture any calls that go through the OS,
  • when there is a call to external.host.url.com then I override it in ProxyMan with whatever remote address I want i.e. google.com.

Now I also begin to understand why I was able to get Map Remote in the past (it is not the first time I use it) and failed this time.

I am using Cisco Secure Client VPN (5.0.03072). When VPN is enabled to access external.host.url.com that is otherwise inaccessible then I get no traffic in ProxyMan with macOS proxy Overridden.

My initial idea was that I will redirect all the traffic from my localhost:3000 server to ProxyMan's running port. This though proved to not work as I would expect it to work because of the reasons mentioned in this conversation.

Is there a way to achieve what I need using ProxyMan?

maciejpigulski avatar Dec 19 '23 10:12 maciejpigulski