I've been trying to to send data via udp to a friend, but he dosen't receive anything. I don't know if it is because of the ip address (his looks like 192.168.*.*, is that the address where i should send the data to ?) or the port (he set his to 87**). Could someone show me an example of a working server and a working client ? It would be very nice !
Do note that those tutorials aren't the best, since, for one, you can indeed create the server itself with löve, and you don't need to mess around with building lua with sockets, and second, using (lua-)enet may be better than using luasocket, and both do come with löve built-in.
Also, to get your actual internet-facing public IP adress, use a website like whatismyip.com
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
You or your friend must have white IP (accessible from global network) or external server (routable too) that connect users. Google NAT and ports and OSI-model.