Hello guys, I have modified the mobile phone remote control script to be able to control a car via network. In one line you have to bind an address to the socket. According to the documentation it it possible to bind to all addresses "*". The original script does exactly that, but when I do that in my custom mod I get the following error message: (the source code can be found in "lua/ge/extensions/core/remoteController.lua") That got me thinking about where the borders of the sandbox are. In the forum I just found this really vague description from tdev: https://www.beamng.com/threads/ui-apps-networking.43041/#post-648798 What limitations I have to account for to be able to send and receive udp packages to and from another computer in the same network? Is there a way to bypass this particular security check with a start parameter? Kind regards
Take a look at the Github repo for the remote control app: https://github.com/BeamNG/remotecontrol Also this file looks like what you need to do to set up the socket: https://github.com/BeamNG/remotecon...evice/BeamNG.SteeringDevice/PSSearching.swift
Update: I was able to create a UDP two way communication system by modifying lua\vehicle\extensions\outgauge.lua and creating a Python script to act as the client. Here are the files if you want to check them out. https://drive.google.com/drive/folders/16hrFJGGLMqAfHWfkOA8ZuJN1RUZLUX8P?usp=sharing