Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

ProxyIP

Returns the IP address of the SOCKS/HTTP proxy configured for the current connection profile.

Returns an empty string if no proxy is configured.

Возвращает IP-адрес SOCKS/HTTP-прокси, настроенного для текущего подключения (профиля).

Возвращает пустую строку, если прокси не настроен.

Pascal

function ProxyIP: String;

Python

def ProxyIP() -> str: ...

Pascal Example

begin
  if ProxyIP <> '' then
    AddToSystemJournal('Proxy: ' + ProxyIP + ':' + IntToStr(ProxyPort))
  else
    AddToSystemJournal('No proxy configured');
end.

Python Example

if ProxyIP():
    AddToSystemJournal(f'Proxy: {ProxyIP()}:{ProxyPort()}')
else:
    AddToSystemJournal('No proxy configured')

See Also

ProxyPort, UseProxy, GameServerIPString