# otPlatMdnsAddressInfo Struct Reference

# otPlatMdnsAddressInfo


`#include <openthread/platform/mdns_socket.h>`

Represents a socket address info.

## Summary

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-plat-mdns-address-info#structot_plat_mdns_address_info_1a8d42ed8032cf6eeae4c66bbb122ce706` | `https://openthread.io/reference/struct/ot-ip6-address` IP address. IPv4-mapped IPv6 format should be used to represent IPv4 address. |
| `https://openthread.io/reference/struct/ot-plat-mdns-address-info#structot_plat_mdns_address_info_1a1a4d78330c43003c60b80fe857aeabd9` | `uint32_t` Interface index. |
| `https://openthread.io/reference/struct/ot-plat-mdns-address-info#structot_plat_mdns_address_info_1a2c8fdf446ce4452293f15d75654fa388` | `uint16_t` Port number. |

## Public attributes

### mAddress

```
otIp6Address otPlatMdnsAddressInfo::mAddress
```
IP address. IPv4-mapped IPv6 format should be used to represent IPv4 address.

### mInfraIfIndex

```
uint32_t otPlatMdnsAddressInfo::mInfraIfIndex
```
Interface index.

### mPort

```
uint16_t otPlatMdnsAddressInfo::mPort
```
Port number.

## 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).