theCapypara / GMnet-ENGINE

A multiplayer/networking engine for Game Maker Studio

Home Page:https://gmnet-engine.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

server only work on lan

Huhu31 opened this issue · comments

Hi i want to try your gmnet engine because i think it's very usefull system! I launch master server .jar on a raspberry pi 2 and it's work fine for find any server launch with the lobby, but when i connect on lan, that work fine and my master server return : "
12/03/18 11:54 : ******:57313 | TCP | Client <-> **** -> Connecting...
12/03/18 11:54 : ******:57313 | TCP | CONECTION FAILED - Server not found
"
but i can play, the demo work and this is sync.
And when i try online with create server on my friend ip, that found the ip on the lobby but when i try to connect with lobby or manual that send me : "-- UDPHP : CLIENT 0 - Could not connect to server!" and "Connection with server failed!" and on my master server : "
12/03/18 14:17 : ******:62781 | TCP | Client <-> ****** -> Connecting...
12/03/18 14:17 : ******:62781 | TCP | Client <-> ****** -> CONNECTED!
"
so the hole punching seem to be ok...
I precise that anybody can create at home his lan server and it work fine but never work in online.
And the UDP and TCP port return by my master server seem to never be the same as i set everywhere (36510), this is only the same UDP port for server created " 12/03/18 14:17 : *********:36510 - UDP - Server registered! ". But i think this is not necessarly the problem, this is server-client new port created by hole punching i guess.

I really don't see why this is not working since 2 days. So i will be really happy if you can help me and sorry for my bad english :)

Do you have the raspberry pi 2 on the same router as you try create a host?
The java master server needs to be on a different network and have a different external IP.
Ex: You can host it on digitalocean

Also note that a connection is not always possible. If you have a symmetric router it will not work. You need to manually do a port-forward.

That's why i try with server on my friend box , and port is already open on my box.
I really don't know why it's not work, the master server seem to do the hole pu ching like i say before...

Oh... when host on my friend ip and another ip than me connect that work... so i can't connect with the same ip as master server and i can't host new serv... but that work ! (that's why i didn't understand why ><)
I just can't test online on my ip x) but i really don't want to rent a server for master server, my pi work well

"so i can't connect with the same ip as master server and i can't host new serv..."
Correct.

"but i really don't want to rent a server for master server, my pi work well"
You need to have 2 friends. One that host the master server and another that you can play with.