Network port question

BlitzPlus Forums/BlitzPlus Programming/Network port question

Regular K(Posted 2005) [#1]
Im wondering, is it possible to detect the IP that a port (UDP) is connceted to?

Like, for example:
ConnIP$=DottedIP$(PortConnIP%(1424))
and that will return the IP that, that port is connected to.

Is there any praticality to this?


Andres(Posted 2005) [#2]
UDP doesn't have an instant connection you just tell him to send data to an IP (in integer IP format) and on a certain port. No streams like in TCP. You just have to remember the IP and the Port the message came from.


Regular K(Posted 2005) [#3]
oh ya, stupid me :P

it would be most likey possible in tcp, but i dont need it in tcp...

hmm


Andy UK(Posted 2005) [#4]
udpmsgport to return port of the user who sent last message and udpmsgip for the ip


Andres(Posted 2005) [#5]
actually will RecvUDPMsg() tell you the integer IP of the sender :) or will UDPMsgIP return id in dotted format?


Regular K(Posted 2005) [#6]
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!?