Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to get the server ip address that the httpClient connected to and exchanged the request/response

Not applicable

Hi all,

I'm using a Javascript based HTTP callout to a backend server say test.com, how can i know the actual server IP address to which the request was sent? is there a field on ex1 or httpClient or some such variable or field that Apigee will fill in?

var req = new Request("https://test.com/api", 'POST', headers, requestBodyStr);

var ex1 = httpClient.send(req);

Please suggest a way to get the server ip address to which the httpclient connected to.

thanks

Mallesh

0 3 5,560
3 REPLIES 3