Public ip of personal dev instance

Arpit Modi1
Tera Contributor

I am doing a POC on my personal dev instance to integrate a third party application. The SOAP apis of third party application are being used. However when i am calling them from instance, the request is getting blocked.

As per the third party app manager, they are asking for public ip of our instance so that ip can be white-listed and will not be blocked further.

I know for any authorized Servicenow Instance(other than PDI), we can get public ip via HI portal. But how to get this information for PDI. I also want to know if this public ip will remain same or keeps changing.

1 ACCEPTED SOLUTION

Hi Arpit,

customers have access to that information via our Service Portal (see: KB0550613 - Identifying and Enabling IP address restrictions - login required). In the case of personal developer instances, I'd recommend asking this specific question in the "Instance Help" forum.

Maybe there's also information in the Developer FAQ.

I hope this helps you further.

Lucas Vieites

View solution in original post

14 REPLIES 14

I have tried that but it is not the public ip. It is the node address for which the instance is accessed.

Arpit Modi1
Tera Contributor
Can anyone help on this??

Try the below code and let me know if any issues

var get_source_ip = new sn_ws.RESTMessageV2();
get_source_ip.setHttpMethod("get");
get_source_ip.setEndpoint("https://api.ipify.org?format=json");
var response = get_source_ip.execute();
response.waitForResponse(30);
gs.info(response.getBody());

Lucas Vieites
Tera Guru

Hi Arpit, have you tried "pinging" your instance URL to see what it returns?

$ ping <instance-name>.service-now.com
PING <instance-name>.service-now.com (149.96.5.119😞 56 data bytes
64 bytes from 149.96.5.119: icmp_seq=0 ttl=241 time=94.838 ms
64 bytes from 149.96.5.119: icmp_seq=1 ttl=241 time=94.937 ms
64 bytes from 149.96.5.119: icmp_seq=2 ttl=241 time=90.352 ms
64 bytes from 149.96.5.119: icmp_seq=3 ttl=241 time=91.484 ms
[...]

Kind regards,
Lucas Vieites
P.S. If my reply helped you, please mark it as helpful or correct so other community members can benefit from this information.

Chuck Tomasi
Tera Patron

Have you tried using nslookup?

find_real_file.png

You might have an issue with an HTTPS connection however since the cert recognizes the name only. A quick curl command to a REST API returned this:

find_real_file.png