• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Mobile Networking (iOS)

network_connect requires an IP to connect, and to my understanding, iPhones have constantly changing IP addresses. How would one ensure a GMS 2 network connection to an iPhone's IP?

Please correct me on any fallacies etc. Thanks for the help! :)
 
A

Adam Tompkins

Guest
You need to host a server with a dedicated IP, or DNS (like Google.com) that can act as a mediator between two devices connecting.

Are you asking to have a two player game, or looking to host a much larger game?
 
@Adam Tompkins thank you for the reply! I'm looking to have it so that many people can connect to a server lobby, think anything like Hearthstone to League of Legends as two big examples of what I'm trying to do on a smaller scale. You're always connected to their servers, even though you're not really interacting with other players other than maybe messaging friends etc.

So I want a lobby where a player can go to the store, see which friends are online etc. but when a player hits a button to find a match and play, the server will sort through everyone trying to find a match and send them to the game room (I have this code worked out)

So I suppose I'm looking to host a much larger server. How should I go about that for mobile?
 
A

Adam Tompkins

Guest
Hi Luke,

Hosting a server like this is a large undertaking and would need to be done in a coding language other than Game Maker Studio.

Game Maker Studio is great for making client side applications, however, cannot handle more than 1000 TCP connections as a server and would use too many system resources.

I would lean towards creating a server from C# (check out the web for examples), but you will need to learn some intermediate C# programming to be able to accomplish this.

The client would still be made in the Game Maker software, and would use TCP Raw functions to connect and communicate to the C# server.

Finally, Game Maker currently does not support IPv6-only TCP network connections, so in the end, if you are looking to release the game on IOS specifically, Apple will reject your game every time.

Painfully, this is something I learned after spending 2 years developing my game and trying to release on the Apple store. I am trying to work with the GMS staff to resolve this issue, but still in the early stages.

Hope this information helps.
 

FrostyCat

Redemption Seeker
Finally, Game Maker currently does not support IPv6-only TCP network connections, so in the end, if you are looking to release the game on IOS specifically, Apple will reject your game every time.

Painfully, this is something I learned after spending 2 years developing my game and trying to release on the Apple store. I am trying to work with the GMS staff to resolve this issue, but still in the early stages.
On that note, you should have advised the original poster to learn Objective C or Swift to bridge that gap with extensions.

The biggest thing that I've seen a lot of commercial GMS developers learn the hard way is the downside to not speaking the native language of the target platform --- Java for Android, Objective C or Swift on iOS/Mac, JS on HTML5 and the C-family on Windows and Ubuntu.
 
A

Adam Tompkins

Guest
FrostyCat, any help you can provide with an IPv6-only extension for IOS TCP/IP Networking would be amazing.
 

FrostyCat

Redemption Seeker
FrostyCat, any help you can provide with an IPv6-only extension for IOS TCP/IP Networking would be amazing.
Not from me at the moment, I've already got my hands full lately with Android and machine learning. There are probably other specialists in this field who can give a more concrete, up-to-date opinion on this.
 
Top