I am looking to see what the ISP-assigned IP address of the remote computer that is running PRTG Network Monitor. I see the local network IP address assigned by the local router as reported by Network Monitor, but I am looking to discover what the public IP address is. Is there a sensor that would show this?


Article Comments

Hello,

you can do that yourself by writing a batch-script or maybe Visual Basic, which parses the result of the 'ipconfig'-command, and then returns the IP to PRTG as the message part of the sensor result.

best regards.


Jun, 2011 - Permalink

a little help:

Get_Public_IP.ps1

#Please read the rulez here http://www.whatismyip.com/faq/automation.asp
$webrequest = [System.Net.WebRequest]::Create("http://automation.whatismyip.com/n09230945.asp")
$webresponse = $webrequest.GetResponse()
$requeststream = $webresponse.GetResponseStream()
$stream = new-object System.IO.StreamReader $requeststream 
$result = [string]$stream.ReadToEnd()+":OK"
write-host $result

Jun, 2011 - Permalink

I fitted Peters idea into a new custom sensor and added a few extra's:

PTF.ExternalIP

This sensor gets the ISP-assigned IP address of the Probe.

  • If the IP has changed since the last scan, the sensor goes into a warning state.
  • Proxy settings are automatically taken form your IE settings

Note: The IP address is obtained using www.whatismyip.com Their rules of engagement state that any automated process must not hit their site more than once every five minutes. So the scanning interval of this sensor must be set to five minutes or higher.

The sensor can be downloaded from this page


Jun, 2011 - Permalink

Use this website to show both internal and public IP address of your computer. http://whatismylocalip.com

you can read also some facts inside the site.


Feb, 2015 - Permalink

The log will show the public ip address of the remote probe when it connects.


Jul, 2017 - Permalink

Hi All,

Is this ExternalIP.exe sensor still working?

I am just getting this error instead of the returned IP address.

XML: The returned XML does not match the expected schema. (code: PE233) -- JSON: The returned JSON does not match the expected structure (Invalid JSON.). (code: PE231)

Thanks


Mar, 2021 - Permalink

All Solved, I was using the EXEXML folder to store the ExternalIp.exe, it just needs to go into the EXE folder and Set placeholders as environment values needs to be set in the sensor settings


Mar, 2021 - Permalink