Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.


Windows Mobile 6.5
A version of this page is also available for

In the Internet address family, this structure is used by Windows Sockets to specify a local or remote endpoint address to which to connect a socket. This structure is IPv6-specific.

struct sockaddr_in6 {
  short sin6_family;
  u_short sin6_port;
  u_long sin6_flowinfo;
  struct in6_addr sin6_addr;
  u_long sin6_scope_id;


Address family; must be AF_INET6.


Transport-level port number


Ipv6 flow information.


Ipv6 address.


Set of interfaces for a scope.

The IP address part of this structure is of type in6_addr.

If an application uses Windows Sockets 1.1 functions and requires IPv6 addresses, it may continue to use all the old functions that take the sockaddr structure as one of the parameters (bind (Windows Sockets), connect (Windows Sockets), sendto, recvfrom, accept (Windows Sockets), and so forth). The only change that is required is to use sockaddr_in6 instead of sockaddr_in.

Windows Embedded CEWindows CE .NET 4.1 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

© 2015 Microsoft