Jump to content
Sign in to follow this  
layer

getting udp's connecting clients ip

Recommended Posts

is there anyway to get the ip of a client when using udp ? i know in tcp you can with SocketToIp (from Larry) but udp is connectionless, and SocketToIp needs a connected socket..

sorry if this has been answered.. it's been a while

wait so maybe its just not possible ? since the server never says hi to the client when using udp (not literally, but you know) ?

edit: using the code from the help file (3.2.0.1) from UDPSend, well, i can never get any error in that code, even if i add letters to the IP in UDPOpen, it doesnt error, neither in the loop where If $status = 0 ... the error msgbox never pops up, is there a reason ?

Edited by layer

FootbaG

Share this post


Link to post
Share on other sites

can you simply have the client send it's IP as data?

man, thats a good idea..

but i was thinking, i guess a reason for udp is speed cause it doesnt have to check if everything was sent successfully, and its mainly used for things like sending voice, and game packets i think.. which always dont need to be assured delivery and usually doesnt need the ip..

thanks though ! :nuke: (if i do need to get the ip, i will use your idea however, so thanks :P)


FootbaG

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...