Exploring Hostnames and IP Addresses
Determine the IP address of a network hostname such as wolfram.com. The result is returned as a symbolic representation of the IP address.
In[1]:=
![Click for copyable input](assets.en/exploring-hostnames-and-ip-addresses/In_1.png)
HostLookup["wolfram.com"]
Out[1]=
![](assets.en/exploring-hostnames-and-ip-addresses/O_1.png)
Conversely, the network hostname associated can also be determined with an IP address.
In[2]:=
![Click for copyable input](assets.en/exploring-hostnames-and-ip-addresses/In_2.png)
HostLookup[IPAddress["140.177.205.56"]]
Out[2]=
![](assets.en/exploring-hostnames-and-ip-addresses/O_2.png)
In[3]:=
![Click for copyable input](assets.en/exploring-hostnames-and-ip-addresses/In_3.png)
HostLookup["127.0.0.1"]
Out[3]=
![](assets.en/exploring-hostnames-and-ip-addresses/O_3.png)