roccomuso / node-ads

NodeJS Twincat ADS protocol implementation
58 stars 21 forks source link

Enable two connections from same PC: Offer IP binding for source IP in constructor #29

Closed martinneumann closed 4 years ago

martinneumann commented 4 years ago

As you say in the project, creating two ADS connections needs another IP address bound to the second process.

But how do I do that? I can't seem to find a way to bind the TCP connection to another IP address anywhere. Is there a way to do that?

Thank you! Other than that, I enjoy this implementation a lot!

martinneumann commented 4 years ago

This problem can easily be solved, see my Stack Overflow thread.

I added the change (literally one line) here. Since this project does not seem to be active, feel free to clone from here: