Hostnamen und IP-Addressen untersuchen
Bestimmen Sie die IP-Addresse eines Netzwerk-Hostnamens wie wolfram.com. Das Ergebnis wird als eine symbolische Darstellung der IP-Addresse zurückgegeben.
In[1]:=
![Click for copyable input](assets.de/exploring-hostnames-and-ip-addresses/In_1.png)
HostLookup["wolfram.com"]
Out[1]=
![](assets.de/exploring-hostnames-and-ip-addresses/O_1.png)
Umgekehrt kann der Netzwerk-Hostname auch mit einer IP-Addresse bestimmt werden.
In[2]:=
![Click for copyable input](assets.de/exploring-hostnames-and-ip-addresses/In_2.png)
HostLookup[IPAddress["140.177.205.56"]]
Out[2]=
![](assets.de/exploring-hostnames-and-ip-addresses/O_2.png)
In[3]:=
![Click for copyable input](assets.de/exploring-hostnames-and-ip-addresses/In_3.png)
HostLookup["127.0.0.1"]
Out[3]=
![](assets.de/exploring-hostnames-and-ip-addresses/O_3.png)