External library (S7.Net) not working as it should (IP address not available).

I’m working on a project in which I have to connect to a PLC. As a test, I made a C# console application using the S7.Net library to make the connection and all is working well, I’m able to read data from the PLC.

Now I want to do it Unity, so I put the DLL in the asset folder, I’m able to use the library in my script and all seems to work fine until I try to connect, then it says the IP Address is not available…

Am I missing something obvious? Could it be that Unity doesn’t support some of the stuff that happens in the library (shouldn’t that give an error, though?) or is it something else?

Some help would be much appreciated :slight_smile:

S7.Net Tutorial with C#