I apologize if this is too generic or wrong place to ask this question but I really want to know if it is possible to find the IP address/location of a person you are chatting with using gmail or gtalk chat client.
migrated from stackoverflow.com Apr 23 '11 at 21:52
In most cases the answer is no, because you are connecting to a hosted instance of an instant messaging service, not the person you are messaging, so even using a program like TCPView will only show connections to IPs owned by google.
My only suggestion is that you might be able to reveal their IP by establishing a direct connection. This is something possible in AIM and skype, but not with Google, because it uses a standard protocal that doesn't support that feature. You can also test file transfers and see if it reveals any new IPs but I doubt you'll find anything different.
Finally, even with an IP, there's no way for you to tell where that machine is located. The best you can do is identify the ISP providing the connection to the person you're talking to.
Social engineering answer: if you're chatting with them you probably already have their email address and thus their login name. So if you can manage to swindle them out of their password, or guess it, you can log into their account, after which gmail will tell you the ip address of the "Last Account Activity."