I want to control my models with an external app. The idea is that when the unity project is executed the project spawns a HTTP Server with routes (just an idea) like IP_ADDRESS/MODEL_NAME/rotate.
Within the app I have some buttons. For example when I click the button "rotate" the app should send a HTTP request to the HTTP server which has been spawned by unity. When the server receives the request I want to rotate the object (in this example).
The unity project (or the executable) is always in the same network as the app. So these components only communicate within the same network.
Is this a suitable way to do this? Has C# already something like this build in? Or is there a better way to achieve this?