Share via


Get the external ip address of all RRAS clients

Question

Tuesday, July 29, 2014 11:49 AM

Hi everyone,

As the title says, Im trying to get a list of all my currently connected clients external ip addresses.
Is there any cmd command or powershell script that could do the trick?

Thanks in advance!

Best Regards,
Jesper

All replies (2)

Wednesday, July 30, 2014 8:07 AM âś…Answered

Hi,

If your server is Windows Server 2012 R2, you may try "Get-RemoteAccessConnectionStatistics|Format-List *" in powershell.

For detailed information, please refer to the link below,

Get-RemoteAccessConnectionStatistics

http://technet.microsoft.com/en-us/library/hh918379.aspx

If it's not Windows Server 2012 R2, you may try " netstate -an | find "port number" " in cmd.

Here is an article about the ports which are used by VPN,

Which ports to unblock for VPN traffic to pass-through?

http://blogs.technet.com/b/rrasblog/archive/2006/06/14/which-ports-to-unblock-for-vpn-traffic-to-pass-through.aspx

Hope this helps.

Steven Lee

TechNet Community Support


Tuesday, July 29, 2014 11:54 AM

I tried "netsh ras show client *" but that only gives me the internal ip