If you don't actually have the phone in your hand, it's possible that you won't be able to obtain its IP address at all. Remember that IP address location mappings aren't perfect and can be inaccurate if someone is using a virtual private network or routing data through many different devices. While you might be able to figure out what city the phone is in, you won't be able to find out the exact street address of the phone.
IP addresses are often assigned by internet service providers, whether they are home ISPs to which a phone may connect via Wi-Fi or phone carriers themselves if a phone uses a data plan to connect to the internet. An internet protocol, or IP address, is a numerical code that is used to route data through the internet to cell phones and computers, similar to how a phone number is used to make a phone call.