IP stands for internet protocol. An IP spoofing or IP Address Forgery is a hijacking technique in which a hacker pretends as a trusted host to disguise someone’s identity.
Although it’s not illegal to spoof an IP Address, as you’re just faking your address to hide your online activities and be anonymous. So basically, you are pretending to be someone else to protect your online activities and be anonymous.