Skip to main content

How to check the public IP address of testRTC probes?

There are times where you may want to know the public IP address of a testRTC probe. This may be needed when you are using some geolocation capabilities or when you limit the service to certain IP addresses.

One of the simplest ways to do is to visit a website that offers that service and take a screenshot from within a test script.

Here’s an example of using maxmind for that purpose:
client
  .url('https://www.maxmind.com/en/locate-my-ip-address')
  .pause(12000)
  .waitForElementVisible("#geoip-demo-results-tbody", 90000)
  .pause(2000)
  .rtcScreenshot('Client - IP')

Was this article helpful?

0 out of 0 found this helpful