Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I cannot connect to gmlive-server from iPhone

A topic by Rokkimanda created 66 days ago Views: 91 Replies: 2
Viewing posts 1 to 2

Hello,

I'm developing an iOS game using macOS and recently introduced GMLive.
However, when I build and run the game on an iPhone, it only shows the following log and never connects:

[GMLive][Fri Apr 18 20:15:04 2025] Trying to connect to gmlive-server...

Here are the things I have confirmed and tried:

  • I launch gmlive-server.n from Terminal before building the project.

  • I set the live_init URL to "Mac's IP address:5100".

  • obj_gmlive is placed in the room.

  • The macOS firewall is turned off.

  • When I change the build target to macOS and set the URL to localhost, the connection succeeds using the same project.

The GameMaker IDE version I'm using is 2024.13.1.193.

Is there anything else I should check or modify?
Thank you in advance.

Developer

If you cannot connect from Mac to its own address, then it’s something on the Mac side (or the IP is wrong).

Once you get that sorted out, if connecting from an iPhone doesn’t work, you can try hosting a web server on Mac and seeing if you can connect from that from Mac but not an iPhone browser. If you can, then it’s something on iPhone side, otherwise it’s something with the game.

Thank you very much for your quick reply.

I've found the cause of the issue.
Once I added "http://" at the beginning of the URL in live_init(), the connection succeeded.
I apologize for the confusion—this happened due to my lack of knowledge regarding networking.

I'm really happy to finally be able to experience such an amazing live coding feature.
Please continue developing this wonderful tool, and take care of yourself as well.

Apologies if any part of my English is difficult to read—this message was translated using AI.