Steps to check the access, if you have installed Site24x7 On-Premise Poller with proxy on a Windows machine:
Execute the following commands on the On-Premise Poller installed machine, using Powershell as an administrator for versions 5 and above:
$ProxyAddress = "http://proxy_url:proxy_port"
[system.net.webrequest]::defaultwebproxy = New-Object system.net.webproxy($ProxyAddress)
$CredCache = [System.Net.CredentialCache]::new()
$NetCreds = [System.Net.NetworkCredential]::new("username","password","domain")
$CredCache.Add($ProxyAddress, "Basic", $NetCreds)
[system.net.webrequest]::defaultwebproxy.credentials = $CredCache
[system.net.webrequest]::defaultwebproxy.BypassProxyOnLocal = $true
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Here,
- replace proxy_url with your proxy host IP and proxy_port with your proxy port.
For example: $ProxyAddress = "http://192.168.100.100:3128/"
- enter your proxy user name and proxy password in the place of username and password. Enter your domain name in the place of domain, if any, and an empty string if there is none.
For older versions of Powershell below 5, execute the commands on the On-Premise Poller installed machine as:
$ProxyAddress = "proxy_address"
[system.net.webrequest]::defaultwebproxy = New-Object system.net.webproxy($ProxyAddress)
[System.Net.CredentialCache]$credentialCache = New-Object System.Net.CredentialCache
$credential = New-Object System.Net.NetworkCredential("username", "Password","domain")
$credentialCache.Add($ProxyAddress,"Basic",$credential)
[system.net.webrequest]::defaultwebproxy.credentials = $credentialCache
[system.net.webrequest]::defaultwebproxy.BypassProxyOnLocal = $true
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
- Replace proxy_address with your proxy host address
- For example: $ProxyAddress = "http://192.168.100.100:3128/"
- Enter your proxy user name and proxy password in the place of username and password. Enter your domain name in the place of domain, if any, and an empty string if there is none.
You can check the PowerShell version using the command $PSVersionTable in the PowerShell console.
Verify your accessibility with the response code 200.