Licensed casinos in the US will have to verify that you are in state lines while playing for real money. As part of the geolocation process, your IP address is one of several factors considered when assessing that you are legally permitted to gamble online.