Putting the code within a DLL wrapper would not solve the permission issue IMHO since the process itself has to be executed in elevated mode. However, the good thing is that most probably a tcpListener is not needed.
Do you think it is possible to execute the following in the command prompt?
telnet 169.254.1.2 52253
We should see the data
How does it look like?
If we see the data and it is interpretable, then the C/AL code should do the following:
- instantiate a TCP client with parameters (“169.254.1.2”, 52253)
- read from the stream (we shall see how, since we don’t know yet whether data is binary or textual)
- parse the weight and display it