How to make a simple custom function to get ip information when assigning proxy?

Support
  • Some proxy providers are blocking BAS ip server. So I want to make custom function to return the ip from my website. How can I do this? I see no guide anywhere as to how the custom function is supposed to integrate with BAS in the proxy command.