Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Get external IP for multiple servers

$
0
0

Hi, is there a way that i can find out the ip that a service is getting externally?

I have a site www.mysite.com that can be load balances between 2 ips 

1.1.1.1

2.2.2.2

I am in my corporate network, so i want to know which ip is the service going externallly

I want to ping www.mysite.com externally and return the ip

I tried with:

$url= 'http://freegeoip.net/csv/www.mysitecom'

$ip = Invoke-RestMethod $urlmodels


But if i run the script internally it returns my ip, not the one from the service.

Is there a way to do it?

Thanks


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>