Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Public IP address of SNOW instance to establish connection between BMC Remedy and SNOW

SHA3
Giga Expert

Hi,

For Integration between SNOW and BMC Remedy we need to establish network connection as both are on different network.

Network team is asking for Public IP address and port details to establish the connection.

Can anyone help with, how to find the Public IP Address of our SNOW instance and port details.

Appriciate your response.

1 ACCEPTED SOLUTION

richard_selby
Kilo Guru

Rather than entering the code in John James Andersen's site (and risk having it fail), it's easier to call his checker via ServiceNow's built in REST tool. To do this, type REST in SN's navigator. Then the NEW button.
Name: Test John-James-Anderson
Description:Publicly available test server
REST endpoint:http://www.john-james-andersen.com/tools/connection.php
Then Save.
When screen reloads, you will see it has automatically created four functions (get,put,post,delete) with the same endpoint. Click on the GET function. Click Test (two thirds of the way down the screen on the left). Then screen should reload and display the output from the Test server, where your (as in your SN instance, not your client) IP is clearly visible.
The two public IP addresses I have seen from our instances are 199.91.137.12 and 37.98.232.12
My guess is the former is for instances running out of Heathrow and the latter is Amsterdam. It would be nice to know though whether more outbound IPs are possible.


View solution in original post

15 REPLIES 15

jwa0008
Kilo Contributor

This has changed and no longer works, but the following works as of 18 June 2018:

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());

The body looks like -> {"ip": "1.2.3.4"}