Try downloading it again and give it another try. I updated build.settings.
It does not work for me, but I have my WiFi and local network heavily locked down.
Try downloading it again and give it another try. I updated build.settings.
It does not work for me, but I have my WiFi and local network heavily locked down.
Ok will do, if it still persists I’ll see if I can fix it if not I’ll post the error here
I was just wondering how does this work? when it is in the simulator it will connect to another simulator just fine but as soon as I build the app and test a simulator to device scenario it wont receive.
So I went to debug and I see that when the server is created the address is set to “*” and the port is set to 0xc001 but the clients address is localhost and the port is something different as well. Do both addresses and ports have to match? If so how do I do this.
I’m about to do some more debugging which will include running the app on real devices and un-commenting the code you mentioned in your post that uses the machine ip instead of localhost.
But from what I’ve seen so far this is exactly what I was looking for.
Also you where right about the build.settings, I completely forgot to enable the internet permissions that’s why I was getting the runtime error
I’m afraid I don’t have time to give a detailed explaination on how it works. You’ll want to find some external docs on sockets.* and read more about that.
However, to answer some of your questions:
For example, if your PC is at 192.168.??.?? then your other devices all need to be at 192.168.???.??? too.
For most folks this is not a problem since they have only one wifi network and it is usually on the same sub-net as their wired network.
Hi, I’m working on it now and I’ve tried changing the address of both the server and the client to the ip of the machine that its running on and it works fine in the simulator however it doesn’t work while using the simulator and a actual device.
I’m gonna try it on actual devices to see if its the simulator that’s the problem.
So I’ve tried it on real devices and I’ve messed around with the ports and addresses to no avail. What do you recommend I do to get it to work?
I have no further recommendations aside from learning more about socket and researching online.
Ok, funny I just got it working 5 minutes before you sent that. I cant thank you enough without your help I wouldn’t have been able to do this.
Be sure to share the modified working files here.
Sharing a project that uses them and demos them working would be the best.
Just attach it to the post as a zip file using the ‘more reply options’ button below.
Ok I’ll be sure to send it once it fully implemented in my game and it works its best
OK, but in the interim can you please describe the change(s) that allowed you to get it working?
Hey man. Don’t hold out on us here. There are a lot of people (including me) who want to know the final solution.
Just attach the modified UDP*.lua files and main.lua with a sample call/setup (all in a single zip file) to a post below (click ‘more reply options’). That should be enough.
I know you promised to give this later, but since it is essentially working now I know it would benefit me and many others to see it sooner rather than later.
Thanks
+1 to roaminggamers request
Sorry I’ve been away since I last replied and haven’t been able to work on my game or reply in the fourm. Basically all I did was make the server display it’s IP and then I implemented a prompt in the client that asked for the server IP (kinda like how minecraft works if you’ve ever played that)