How can I change the name of my PC that the router sees when I'm connected (in attached devices)? (Without changing username)
Edit (clarification): Currently, when I connect my laptop wirelessly to a router, it's possible to see my computer's name (an thus my own name, since it's <myname>-XPS-13-9343
) via the attached devices screen in the router configuration panel. I want to change the way that my computer is seen to the outside world (for shake of privacy).
Your pc name is saved in /etc/hostname & /etc/hosts files.
On a Terminal, type
sudo gedit /etc/hostname
command and change the pc name.Also, change the hostname in
sudo gedit /etc/hosts
"first line is 127.0.0.1 localhost , second line is 127.0.0.1 "YOUR PC NAME".Then type this command
sudo service hostname restart
to restart the service. your PC name is changed.