New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connect to targetAmsNetId on OSX Catalina fails #51
Comments
Hi Hans! Thanks! Great that it has been working so far, glad to hear! As you OSX doesn't have a TwinCAT router installed, it has no idea where that machine with AmsNetId 5.85.243.162 is (as AmsNetId is not IP address). As default, the ads-client tries to connect to local router (localhost), which is usually OK when you have TwinCAT installed. However, now you won't have any. Instead, you need to tell the client to connect to router of another machine, as with Raspberry Pi example. You also need to provide AmsNetId of your own. So follow the https://github.com/jisotalo/ads-client#setup-3---connecting-from-any-nodejs-supported-system-to-the-plc Change the PLC_IP_ADDRESS to your PLC IP. And the port 48898 needs to be open from firewall.
Please let me know how it's going! I haven't heard any comments from OSX yet. |
Hi there, thank you for your explanation! Just figured out that I actually never connected with OSX before... I thought I did, but that was when I was running bootcamped Windows (with TwinCAT installed.) I'll try to get it running following your guide and keep you updated Thanks for you help! |
Got it working! It's actually quite easy if using the Beckhoff Web Configuration.
Now I can connect from OSX with the following credentials:
Works! Thank you so much |
Awesome! Thanks for detailed info. I'll link to this issue later from the FAQ if that helps somebody! I have been thinking about a node.js based AMS router, that would work in any machine (similar to the .NET Core version by Beckhoff). That would be another solution too. |
hi can you tell me what platform you are using to connect, i use react-native and it gives error: |
|
Hi Hans, |
Hello there,
first of all – thank you for that awesome library.
I'm using it to talk a Beckhoff PLC and it works like a charm. On one of my computers I run into a problem. Even the minimal example would not connect:
Results in this error message:
Something failed: ClientException: Connection to localhost:48898 failed (socket error -61) (connect ECONNREFUSED 127.0.0.1:48898)
(OSX Catalina, internal Firewall is turned OFF, no virus scanners etc.)
I wonder, why this tries to connect to localhost instead of the NetId. Is this expected behaviour? On the other machine (Windows) it connects just fine, printing:
Thanks in advance
Hans
The text was updated successfully, but these errors were encountered: