dos remote hostname by ip code example
Example: windows give an ip address a name
edit as an administrator:
C:\Windows\system32\drivers\etc\hosts
192.168.0.13 raspberry
edit as an administrator:
C:\Windows\system32\drivers\etc\hosts
192.168.0.13 raspberry