Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Connectivity > age_net
get_address/1
Description
get_address/1 is an Erlang function exported by "age_net" module.
Resolves the IPv4 address from a specified host name.
The Host can be string (domain or IP address), or IP tuple.
References
None
Parameters
Name
Type
Input
string() | tuple()
Input host name, IP address, or IP tuple.
Result
Value or Type
tuple()
Returns an IP4 tuple.
Code Sample
> age_net:get_address("www.binetix.net").
{94,26,63,185}