# Unable to connect to Siemens S7-1200 PLC OPC UA server

**URL:** <https://forum.inductiveautomation.com/t/unable-to-connect-to-siemens-s7-1200-plc-opc-ua-server/76334>\
**Category:** Ignition\
**Created:** [July 13, 2023, 3:13pm UTC](https://forum.inductiveautomation.com/t/unable-to-connect-to-siemens-s7-1200-plc-opc-ua-server/76334 "2023-07-13T15:13:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrick\_Martinez](https://avatars.discourse-cdn.com/v4/letter/p/22d042/32.png) [@Patrick\_Martinez](https://forum.inductiveautomation.com/u/Patrick_Martinez)\
**Post date:** [July 13, 2023, 3:13pm UTC](https://forum.inductiveautomation.com/t/unable-to-connect-to-siemens-s7-1200-plc-opc-ua-server/76334/1 "2023-07-13T15:13:23Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/c/acf7732c7f0b0453b921f39ca568cbb7954ab457.png)

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

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/b/7b9c49eb2f94d5302067904b86425e2d7944d566.png)  
This is what it shows in TIA Portal

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [July 13, 2023, 3:14pm UTC](https://forum.inductiveautomation.com/t/unable-to-connect-to-siemens-s7-1200-plc-opc-ua-server/76334/2 "2023-07-13T15:14:32Z")

</div>

Recompile? Download hardware configuration?

Right now you have a basic network problem that means the connection is blocked or the server isnt running.
