Network port question

BlitzPlus Forums/BlitzPlus Programming/Network port question

Well, my goal is to try to figure out the ip address im connected to in half-life (that would most likely include cs, dod, and hl2 mods)

I wonder how xfire does it!?