Your IP (Internet Protocol) address is your device’s home address — but on the internet! It’s provided to you by your ISP (Internet Service Provider). All the good stuff you see online? You’re only seeing it because IP addresses allow that data to find its way to your device. Unfortunately, that also means that your IP tells hackers, advertisers, trackers, and geo-blockers just where you are online and your approximate geographic location. This information you probably want to keep secret.
No, it is not illegal to hide your IP address.