cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
594
Views
0
Helpful
2
Replies

How do I display current IPv6 connections?

Timothysaunders
Level 1
Level 1

I have been trying to display current IPv6 connections with the GetExtendedTcpTable() method from Windows, but I'm not getting it to display any IPv6 Addresses. I only found code on how to display current IPv4 connections, so what I did is change the IPv4 methods to IPv6 methods of the Windows documentation. Any help it will be appreciated. Thanks in advance! 

myhealthonline sutterhealth org

2 Replies 2

balaji.bandi
Hall of Fame
Hall of Fame

if the connection is established using ipv6 then TCP connection should show :

Get-NetTCPConnection -State Established | Format-Table -AutoSize

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Harold Ritter
Cisco Employee
Cisco Employee

Hi @Timothysaunders ,

According to documentation, you need to call GetExtendedTcpTable() with ulAf set to AF_INET6.

https://learn.microsoft.com/en-us/windows/win32/api/iphlpapi/nf-iphlpapi-getextendedtcptable

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México