# otSockAddr Struct Reference

# otSockAddr


`#include <openthread/ip6.h>`

Represents an IPv6 socket address.

## Summary

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-sock-addr#structot_sock_addr_1a10d1d646a9b527001349ca83b782cefc` | `https://openthread.io/reference/struct/ot-ip6-address` An IPv6 address. |
| `https://openthread.io/reference/struct/ot-sock-addr#structot_sock_addr_1ad9b52e6e0906eb7727373a26412a1715` | `uint16_t` A transport-layer port. |

## Public attributes

### mAddress

```
otIp6Address otSockAddr::mAddress
```
An IPv6 address.

### mPort

```
uint16_t otSockAddr::mPort
```
A transport-layer port.

## Resources

OpenThread API Reference topics originate from the source code, available
on [GitHub](https://github.com/openthread/openthread/tree/main/include/openthread).
For more information, or to contribute to our documentation, refer to
[Resources](https://openthread.io/resources).