Page 1 of 1

need help getting an enet server online

Posted: Tue Feb 09, 2016 2:53 pm
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 ? :)

Re: need help getting an enet server online

Posted: Tue Feb 09, 2016 7:01 pm
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.

Re: need help getting an enet server online

Posted: Tue Feb 09, 2016 7:25 pm
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 :(

Re: need help getting an enet server online

Posted: Thu Feb 11, 2016 8:23 pm
by mcht
turns out i made a mistake in my firewall rules, sorry guys