[GH-ISSUE #1776] Can we fake IP address in requests? #1769

Closed
opened 2026-03-03 19:54:15 +03:00 by kerem · 5 comments
Owner

Originally created by @takasurazeem on GitHub (Sep 21, 2023).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1776

Description

Hi, I have to test an application that has geo restricted features and I cannot use VPN with proxy-man, is there a way to change the IP address for requests to a certain app in proxyman? It's an iOS app running in simulator.

Originally created by @takasurazeem on GitHub (Sep 21, 2023). Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1776 ## Description Hi, I have to test an application that has geo restricted features and I cannot use VPN with proxy-man, is there a way to change the IP address for requests to a certain app in proxyman? It's an iOS app running in simulator.
kerem closed this issue 2026-03-03 19:54:15 +03:00
Author
Owner

@NghiaTranUIT commented on GitHub (Sep 21, 2023):

Sorry, it's not what Proxyman can do. You might use other VPN that allows you to change the IP address.

<!-- gh-comment-id:1729056534 --> @NghiaTranUIT commented on GitHub (Sep 21, 2023): Sorry, it's not what Proxyman can do. You might use other VPN that allows you to change the IP address.
Author
Owner

@takasurazeem commented on GitHub (Sep 21, 2023):

Sorry, it's not what Proxyman can do. You might use other VPN that allows you to change the IP address.

No worries, just something possible with Charles. I thought would be possible with ProxyMan as well.

<!-- gh-comment-id:1730354413 --> @takasurazeem commented on GitHub (Sep 21, 2023): > Sorry, it's not what Proxyman can do. You might use other VPN that allows you to change the IP address. No worries, just something possible with Charles. I thought would be possible with ProxyMan as well.
Author
Owner

@NghiaTranUIT commented on GitHub (Sep 22, 2023):

Just wondering @takasurazeem How can you do it with Charles Proxy? What debugging Tool from Charles do you use? 🤔

<!-- gh-comment-id:1730669422 --> @NghiaTranUIT commented on GitHub (Sep 22, 2023): Just wondering @takasurazeem How can you do it with Charles Proxy? What debugging Tool from Charles do you use? 🤔
Author
Owner

@takasurazeem commented on GitHub (Sep 22, 2023):

Just wondering @takasurazeem How can you do it with Charles Proxy? What debugging Tool from Charles do you use? 🤔

https://stackoverflow.com/a/73481078/3077444

<!-- gh-comment-id:1731967258 --> @takasurazeem commented on GitHub (Sep 22, 2023): > Just wondering @takasurazeem How can you do it with Charles Proxy? What debugging Tool from Charles do you use? 🤔 https://stackoverflow.com/a/73481078/3077444
Author
Owner

@NghiaTranUIT commented on GitHub (Sep 23, 2023):

Then, you can do the same thing with Proxyman.

  1. Tools menu -> Scripting -> New Rule
  2. In the URL: Use * to represent all requests
  3. Use this script to add the header X-FORWARDED-FOR
function onRequest(context, url, request) {
    request.headers["X-FORWARDED-FOR"] = "<Your_IP_Address>";
    return request;
}
  1. Make some request -> Right Click -> Enable SSL proxying -> Done.

Please note that only requests that are enabled SSL Proxying, will be modified by the Scriptping -> Has new Header.

You can find all snippet code at https://docs.proxyman.io/scripting/snippet-code#request-query

<!-- gh-comment-id:1732173680 --> @NghiaTranUIT commented on GitHub (Sep 23, 2023): Then, you can do the same thing with Proxyman. 1. Tools menu -> Scripting -> New Rule 2. In the URL: Use `*` to represent all requests 3. Use this script to add the header `X-FORWARDED-FOR` ```js function onRequest(context, url, request) { request.headers["X-FORWARDED-FOR"] = "<Your_IP_Address>"; return request; } ``` 4. Make some request -> Right Click -> Enable SSL proxying -> Done. Please note that only requests that are enabled SSL Proxying, will be modified by the Scriptping -> Has new Header. You can find all snippet code at https://docs.proxyman.io/scripting/snippet-code#request-query
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#1769
No description provided.