Network port question
BlitzPlus Forums/BlitzPlus Programming/Network port question| 
 | ||
| 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? | 
| 
 | ||
| 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. | 
| 
 | ||
| oh ya, stupid me :P it would be most likey possible in tcp, but i dont need it in tcp... hmm | 
| 
 | ||
| udpmsgport to return port of the user who sent last message and udpmsgip for the ip | 
| 
 | ||
| actually will RecvUDPMsg() tell you the integer IP of the sender :) or will UDPMsgIP return id in dotted format? | 
| 
 | ||
| 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!? |