need help getting an enet server online

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
mcht
Prole
Posts: 3
Joined: Tue Feb 09, 2016 2:33 pm

need help getting an enet server online

Post by mcht »

im trying to get an enet server to work but i dont have a lot of experience with networking

im not gonna provide any code since its pretty much just the example @ https://love2d.org/wiki/lua-enet

when i use localhost for server and client and run both on my pc everything works fine
to get it to work online i used my lan ip for the server, forwarded the port on my router (tested and working), and tested it with a friend trying to connect
but the packets dont seem to reach the program, i can tell with wireshark that theres definitely stuff arriving on that port
i tried it with a loopback so i can test it myself but that doesnt work either, but looks similar in wireshark
like i said i dont have any experience with wireshark, all i see is there are packets coming in wrapped in gsvp ?

did i make any obvious mistakes ? what info can i provide to help you help me ? :)
User avatar
pgimeno
Party member
Posts: 3683
Joined: Sun Oct 18, 2015 2:58 pm

Re: need help getting an enet server online

Post by pgimeno »

Can you post the examples as you used them? More specifically, did you change "localhost:6789" to something like "0.0.0.0:6789" in the server and to something sensible on the client?

I have zero experience with enet, but from a quick test, I see that if you don't do that, the server listens on localhost only, meaning it won't receive packets on the normal network interface you use for internet access.
mcht
Prole
Posts: 3
Joined: Tue Feb 09, 2016 2:33 pm

Re: need help getting an enet server online

Post by mcht »

thats what i though so i changed the server to listen on my lan ip (192...) and the client tries to connect to my internet ip, but its not working :(
mcht
Prole
Posts: 3
Joined: Tue Feb 09, 2016 2:33 pm

Re: need help getting an enet server online

Post by mcht »

turns out i made a mistake in my firewall rules, sorry guys
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 8 guests