In most cases, hiding your IP address is legal. However, crimes committed while hiding your IP address are illegal, and you will likely get into serious trouble with the law when caught.