# Get the curent IP address (netos7.1)

**URL:** <https://forums.digi.com/t/get-the-curent-ip-address-netos7-1/5643>\
**Category:** NET+OS\
**Created:** [July 6, 2007, 10:17am UTC](https://forums.digi.com/t/get-the-curent-ip-address-netos7-1/5643 "2007-07-06T10:17:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pevandenburie](https://avatars.discourse-cdn.com/v4/letter/p/7feea3/32.png) [@pevandenburie](https://forums.digi.com/u/pevandenburie)\
**Post date:** [July 6, 2007, 10:17am UTC](https://forums.digi.com/t/get-the-curent-ip-address-netos7-1/5643/1 "2007-07-06T10:17:33Z")

</div>

Hi group,

In NETOS 7.1, what is the function to retrieve the current IP address ?  
I mean customizeIamGetConfig() only gives the IP configuration stored in NVRAM.

In NETOS60F, I used NAIpAddress(), but it’s no more available in NETOS71 !

Thanks for any information,

Paul

---

<div class="post-metadata">

**Author:** ![charliek](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@charliek](https://forums.digi.com/u/charliek)\
**Post date:** [July 9, 2007, 10:55pm UTC](https://forums.digi.com/t/get-the-curent-ip-address-netos7-1/5643/2 "2007-07-09T22:55:27Z")

</div>

Try using customizeIamGetIfAddrInfo().

---

<div class="post-metadata">

**Author:** ![compie](https://avatars.discourse-cdn.com/v4/letter/c/4af34b/32.png) [@compie](https://forums.digi.com/u/compie)\
**Post date:** [September 19, 2007, 9:18am UTC](https://forums.digi.com/t/get-the-curent-ip-address-netos7-1/5643/3 "2007-09-19T09:18:13Z")

</div>

Tip:

The IPv4 address of the first ethernet interface can be found like this:

NaIamIfAddrInfo\_t AddrInfo;  
NaIamStatus\_t Status = customizeIamGetIfAddrInfo(BP\_ETH\_INTERFACE, &AddrInfo);  
//check status

uint32 IPv4 = AddrInfo.v4Info.ipAddress.addr.ipv4.sin\_addr.s\_addr;
