Tutorial:Networking with UDP connection refused
Posted: Wed Jan 25, 2023 5:09 am
New to UDP and I just typed out the code over at https://love2d.org/wiki/Tutorial:Networking_with_UDP
I'm on PopOs and I've installed Love 11.4 and Lua 5.1.5
I've installed luasocket on my machine via luarocks
I start the server via the shell with the command without any apparent issues
When I start the client with the command the connection refused error is thrown.
Initially I thought I might have introduced a typo, but nope, I copy-pasted the code at https://love2d.org/wiki/Tutorial:Networ ... -TheClient and https://love2d.org/wiki/Tutorial:Networ ... -TheServer and the connection is still refused.
I noticed this code is 11 years old now. Has much changed since then? Does this code work for you guys?
I'm on PopOs and I've installed Love 11.4 and Lua 5.1.5
I've installed luasocket on my machine via luarocks
I start the server via the shell with the command
Code: Select all
lua ./main.lua
When I start the client with the command
Code: Select all
love ./
Initially I thought I might have introduced a typo, but nope, I copy-pasted the code at https://love2d.org/wiki/Tutorial:Networ ... -TheClient and https://love2d.org/wiki/Tutorial:Networ ... -TheServer and the connection is still refused.
I noticed this code is 11 years old now. Has much changed since then? Does this code work for you guys?