Use a fake hostname by randomly choosing a name from the first-names.txt file and assigning it as the new hostname.Use a fake MAC address by randomly choosing a MAC address to assign to the wireless network card.To protect yourself, you want to do two things when connecting a computer to a wireless network: But it’s possible you’re not comforable with broadcasting your name over a network. On MacBooks, your hostname could be something like “Bobby’s MacBook Pro”. In short, networks are tracking you.Īlong with your MAC address, your computer’s name or “hostname” is also visbile on a network depending upon which services you use. This means that there’s a record of all the places you’ve been to over the years. This happens with any network you join and your MAC address never changes. When you connect to a network, a router gives your computer an IP address and stores both your MAC and IP address in a table. You MAC address is the hardware identifier assigned to your network card. If you value privacy and don’t want networks to track your computer, a good first step is to spoof your computer’s MAC address and host name. How to Spoof Your MAC Address and Host Name on Ubuntu December 19, 2020 If you're looking for a public IP address of the box, you could use the following: The ip addr is no longer at $NF it is now located at $7. NOTE 1: The output of ip route get has changed since this answer was posted. The short answer is: ip route get 8.8.8.8 | sed -n '/src/' If you care about reaching the public internet, using Google's 8.8.8.8 DNS server is pretty standard. if you can ssh to it, you can then perform the hostname command to see what it thinks its name is: ssh userthe-ip-address hostname ). Depending on what IP you are trying to reach, "my own ip address" (OP's words) will be different. The only method that I can think of is to connect to the IP and ask it what its hostname is (e.g. You trim the output of ip route to get only the source IP. I don't mean to be a jerk, but there really is a right way and this is it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |