Xbox party chat historically utilized P2P connections, though Microsoft has transitioned most party traffic to secure servers. To maximize safety, use dedicated communication platforms like Discord for voice chat when playing with unfamiliar players, as these apps completely mask your IP address. Use a Virtual Private Network (VPN)
If you need to find your own console's IP address for troubleshooting or port forwarding, use the official settings: xbox gamertag ip address finder