I have watched 2 tutorial series about networking. One wasn't that good, but the other was really in-depth.
So I have a basic understanding about networking.
But one thing wasn't mentioned in either of the series.
How do you make it truly online?
My project works just fine if the server and the client are both on my computer. It even works when I'm connecting with a computer that is on the same network as the server.
But (as I expected), it doesn't work with an external computer. Sadly, I read that it is hard to make a truly online game.
I have done some research and found an extension to GMS, called GMnet Engine. The problem is that it is not for 2.0.
Should I use it? Will it still work?
Or should I try to do it myself? Are there any materials on the internet for it?
If anybody has done something like this, a truly online game, how did you do it?
(I don't want to make a huge online game with matchmaking and such, I just want to play with my friends online.)
My current setup: (oversimplified)
Server:
Client:
I have a feeling that the ip variable is a veeery important thing to make it to online, I tried a lot of things, but the only ip that works, is the one that cmd>ipconfig>IPv4 shows, and even that only works in a local network. (I tried that external? ip too)
So I have a basic understanding about networking.
But one thing wasn't mentioned in either of the series.
How do you make it truly online?
My project works just fine if the server and the client are both on my computer. It even works when I'm connecting with a computer that is on the same network as the server.
But (as I expected), it doesn't work with an external computer. Sadly, I read that it is hard to make a truly online game.
I have done some research and found an extension to GMS, called GMnet Engine. The problem is that it is not for 2.0.
Should I use it? Will it still work?
Or should I try to do it myself? Are there any materials on the internet for it?
If anybody has done something like this, a truly online game, how did you do it?
(I don't want to make a huge online game with matchmaking and such, I just want to play with my friends online.)
My current setup: (oversimplified)
Server:
Code:
network_create_server(network_socket_tcp, serverPort, maxClients);
Client:
Code:
client = network_create_socket(network_socket_tcp);
network_connect(client, ip, port);