I've been to trying to connect to the OPC UA server I created on an S7-1200 but keep getting this error. I'm on the same network as the PLC.
UaException: status=Bad_ConnectionRejected, message=io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: /192.168.1.2:4840
This is what it shows in TIA Portal