I 've learned a lot of things on luasockets with the online documentation and the tutorial on the wiki (https://love2d.org/wiki/Tutorial:Networking_with_UDP) so i wanted to try my first "multiplayer" game!
I made a very simple Pong game engine a few weeks ago so i turned it into a multiplayer game
I can easily lauch the server script and 2 löve clients on my computer! However it is not the best to test a network game...
So my question is : how can i connect a client from another computer(on my local network...or maybe farther ) to the server running on my computer ? (if it's possible)
For the moment I have on the client side :
Code: Select all
udp:setpeername("localhost",6112)
and on the server side :
Code: Select all
udp:setsockname("*",6112)
I think those lines are the keys, but i have no idea what to put as parameters (i've made many unsuccessful attempts on a client script i launched on another computer in my house)
I'm totally newb at this and didn't find any answer on the internet, and sorry for my english