1
I've seen this question, but it doesn't address my current issue (it's about getting the external IP address of the current machine):
Windows command that returns external IP
I'm on a network that has a number of external IP addresses. I need to determine the external address of an internal machine that may use a different external address. Obviously, I could go to a machine outside the network and ping it from there, but how do I do this from inside the network?
I would like this to be incorporated into an automated process, so a DOS command or PowerShell script would be preferred.
1Isn't it set using NAT on your router? The machine isn't aware of any external address. Only router is – Ashtray – 2013-09-13T15:24:02.450
@Ashtray Is it possible to do something like ping the server via another external server / service? – p.s.w.g – 2013-09-13T15:35:09.080
1It would be easier to answer if we'd know what are you trying to achieve/test/whatever :) – Ashtray – 2013-09-13T15:37:15.493
@Ashtray I want to automatically build a list of IP address(es) that a customer will need to access when we install a particular product on their machine. Some customers are behind a firewall, so we can't determine it from the machine we're installing on (we would already need to know which IP's need to be unblocked). Rather, I'd like our build server to generate the list dynamically by resolving the server names to external IP addresses. – p.s.w.g – 2013-09-13T16:13:39.253