# Unable to write tag to PLC

**URL:** <https://forum.inductiveautomation.com/t/unable-to-write-tag-to-plc/93700>\
**Category:** Ignition\
**Created:** [July 24, 2024, 7:34pm UTC](https://forum.inductiveautomation.com/t/unable-to-write-tag-to-plc/93700 "2024-07-24T19:34:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Justin\_Bodycomb](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@Justin\_Bodycomb](https://forum.inductiveautomation.com/u/Justin_Bodycomb)\
**Post date:** [July 24, 2024, 7:34pm UTC](https://forum.inductiveautomation.com/t/unable-to-write-tag-to-plc/93700/1 "2024-07-24T19:34:43Z")

</div>

Hello,  
First time using ignition here. I am trying to create a button that will start my machine. I am able to change the value in the designer and start the machine but unable to change it when inside the client. Whenever I press the button in the client I get the following two messages in the logs(See Below). I have set the tag to read/write. Thank you!

"Failed to create subscription 'tag-group-default\_default': io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: getsockopt: /10.79.212.251:4840"

"subscriptionName=tag-group-default\_default, ignSubscription=com.inductiveautomation.ignition.gateway.opcua.client.connection.OpcUaSubscriptionModel$IgnitionSubscription@66dce611, opcSubscription=null"

---

<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 24, 2024, 7:42pm UTC](https://forum.inductiveautomation.com/t/unable-to-write-tag-to-plc/93700/2 "2024-07-24T19:42:50Z")

</div>

These aren't in response to your button press, but they are an indication that you are unable to connect to the OPC UA server at `10.79.212.251:4840`.

Based on the error (connection refused) you have probably never had a successful connection to this server. Or if you did, something changed, and you don't now.

Likely causes could be firewall blocking the attempt, wrong IP/port information, or the server isn't configured/running.
