# Obtain the IP adress with Natural

**URL:** <https://techcommunity.softwareag.com/t/obtain-the-ip-adress-with-natural/60754>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Linux, Natural-on-Windows-Unix\
**Created:** [March 31, 2006, 8:34pm UTC](https://techcommunity.softwareag.com/t/obtain-the-ip-adress-with-natural/60754 "2006-03-31T20:34:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gabriel](https://avatars.discourse-cdn.com/v4/letter/g/9de0a6/32.png) [@Gabriel](https://techcommunity.softwareag.com/u/Gabriel)\
**Post date:** [March 31, 2006, 8:34pm UTC](https://techcommunity.softwareag.com/t/obtain-the-ip-adress-with-natural/60754/1 "2006-03-31T20:34:20Z")

</div>

Hello,

I work with Natural and unix (AIX OS). I would need a way to capture the computer where a program is running. It could be the IP adress, the computer name, or something similar.  
I tried with the \*INIT-ID, but is not the same each time I open the session.  
Does anybody know the way to obtain this information?

Thanks a lot,  
Gabriel Knuchel.

---

<div class="post-metadata">

**Author:** ![Chad\_Scott](https://avatars.discourse-cdn.com/v4/letter/c/b3f665/32.png) [@Chad\_Scott](https://techcommunity.softwareag.com/u/Chad_Scott)\
**Post date:** [March 31, 2006, 9:13pm UTC](https://techcommunity.softwareag.com/t/obtain-the-ip-adress-with-natural/60754/2 "2006-03-31T21:13:17Z")

</div>

In the Windows version there are system variables which give some of that information:  
\*HOSTNAME = The name of the machine  
\*NET-USER = the complete user ID consisting of the domain name and the actual user ID

The \*HOSTNAME may work if it is available on your OS…

Chad.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:40pm UTC](https://techcommunity.softwareag.com/t/obtain-the-ip-adress-with-natural/60754/3 "2021-04-02T14:40:33Z")

</div>


