How to change IP within macro?

Good day, I was seeing the command setproxy in order to try to change the IP within the macro. I think a VPN works for that goal, but in order to change IP using a macro the option is to use setproxy command right?

I’ve tried taking from some free proxy list in this way

setproxy | 38.154.227.167:5868 open | URL

But when try to open URL appears “No internet connection”. What I’m doing wrong?

I don´t see a demo macro for this. Do you have some working example please?

Thanks

Hi, are you sure this free proxy works? When I tried some of these last year, 99% of them were crap and did not work. A total waste of time. Then I purchased some paid proxy IP and they work fine.

You can test the IP in Chrome. If websites loads the proxy is working. Go to Settings > Advanced > System > Open your computer’s proxy settings, and then add your proxy details under the “Manual proxy setup” section.

proxy rpa

Hi @Plankton, Thanks for the advice.

I’ve tried a few free proxies doing “Manual proxy setup” and loading some pages. Some didn´t load, but in cases of proxies that worked (since the websites loaded) I tried to use inmediately in my macro the same working proxy using for example the command setProxy|https://xxx.xxx.xxx.xxx:PORT and after run the macro, the website didn´t load.

Not sure what happened and how to fix that behavior.

I tested a bit more and it seems httpS is not supported. I re-watched the ui.vision setproxy demo video, and they also use HTTP, not HTTPS :wink:

So this works for me:

Same proxy URL but with https does not work.

This macro works for me (but of course, before posting, I changed the proxy password :wink:

{
  "Name": "test proxy",
  "CreationDate": "2024-3-23",
  "Commands": [
    {
      "Command": "open",
      "Target": "https://nordvpn.com/what-is-my-ip/",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "pause",
      "Target": "5000",
      "Value": "",
      "Description": "proxy off, local IP is shown"
    },
    {
      "Command": "setProxy",
      "Target": "http://195.123.210.138:43407",
      "Value": "m0RbNv,Xp7vxxxxx",
      "Description": ""
    },
    {
      "Command": "open",
      "Target": "https://nordvpn.com/what-is-my-ip/",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "pause",
      "Target": "5000",
      "Value": "",
      "Description": "proxy ON, Lithuanian IP is shown"
    }
  ]
}
1 Like

Hi Plankton. Thanks for great support. I’ve tried as you did and it works now for me. Only http as you said. And SOCKS4/5 only work in Firefox.

The proxy set in macro is limited to browsing inside the Chrome instance linked by UI Vision and not the to internet connection for entire Windows system?

The proxy set stops working when macro ends?

Yes

By default, yes. But you can change this behavior in the settings:

proxy rpa

1 Like

Thank you! My last question, I promise.

I see proxy with https doesn’t work with setProxy, but the target URL opens with https. Then is there some security issue or something using an HTTP proxy and trying to access an HTTPS URL? Or doesn’t matter?

Regards

Ask as many questions as needed. I am glad when I can answer a few things :wink:

About your last question: I am not a security expert, but from my understanding all is safe. If you use e.g. https://yourbank .com thru a proxy via a http connection to the proxy the traffic to/from your https://yourbank .com is still encrypted between your browser and the bank server. The detour via the proxy does not change that!

Having said that, there is a theoretical possibility of a man in the middle attack with or without SSL connection to the proxy. So I would never access my own bank website thru a shady free proxy server :wink: I use the bank website just as an example.

1 Like

Thanks so much for your answer and kindness @Plankton. It is not a very common characteristic in programming forums. :smiley: