• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Question - Code How can i get the ipv4 address?

hatsoof69

Member
how can i get the ipv4 address of a device (windows/ios/android) i dont see any command for it. I just want to implement a multiplayer lan for my game but i dont know how to get the ipv4 addres of device to attach it it to a variable any ideas?
 

O.Stogden

Member
You can use a PHP script and a webserver that will let you store or echo back your public IP address.

Other than that, I'm pretty sure the network example for GMS includes a broadcast server that just broadcasts the IP of the server to any potential clients, so there wouldn't be much need for showing or storing your LAN IP.
 
Top