# Modbus server error when connection to Fogwing

**URL:** <https://discourse.nodered.org/t/modbus-server-error-when-connection-to-fogwing/78006>\
**Category:** General\
**Created:** [28 April 2023 12:02 UTC](https://discourse.nodered.org/t/modbus-server-error-when-connection-to-fogwing/78006 "2023-04-28T12:02:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![allienka](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/allienka/32/79351_2.png) [@allienka](https://discourse.nodered.org/u/allienka)\
**Post date:** [28 April 2023 12:02 UTC](https://discourse.nodered.org/t/modbus-server-error-when-connection-to-fogwing/78006/1 "2023-04-28T12:02:01Z")

</div>

Hi,  
Im new to IoT and node-Red.  
working step-by-step by this instructions link and still having an error:  
[error] [modbus-flex-write:write Modbus payload] Error: Modbus exception 4: Slave device failure (device reports internal error)

> **[How to Connect Node-Red with Fogwing Platform | Fogwing Help Center -...](https://help.fogwing.io/en/articles/5683378-how-to-connect-node-red-with-fogwing-platform)**
>
> Learn about connect Node-Red with Fogwing Platform for sending data from Modbus TCP. Step by Step guide with simplicity.

could anyone please check are these instructions correct?

at the same time having also problems with MQTT.fx

> **[Fundamentals Of Connecting MQTT Client With Fogwing IoT Platform](https://www.fogwing.io/blog/connecting-iot-hub-with-mqtt-fx/)**
>
> Learn the Fundamentals of connecting MQTT client to the Fogwing Industrial IoT Platform for real-time iot data publishing and processing.

2023-04-28 14:26:45,844 INFO --- ScriptsController : Clear console.  
2023-04-28 14:26:45,845 ERROR --- BrokerConnectService : MqttException  
2023-04-28 14:49:08,318 INFO --- BrokerConnectorController : onConnect  
2023-04-28 14:49:08,319 INFO --- ScriptsController : Clear console.  
2023-04-28 14:49:08,322 INFO --- MqttFX ClientModel : MqttClient with ID 1151-3365-2373-3077 assigned.  
2023-04-28 14:49:09,136 ERROR --- MqttFX ClientModel : Error when connecting

is it correct that according to Node red instruction the port is 1883 and in MQTT instruction using 8883?

Thank you very much

---

<div class="post-metadata">

**Author:** ![allienka](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/allienka/32/79351_2.png) [@allienka](https://discourse.nodered.org/u/allienka)\
**Post date:** [2 May 2023 07:20 UTC](https://discourse.nodered.org/t/modbus-server-error-when-connection-to-fogwing/78006/2 "2023-05-02T07:20:17Z")

</div>

anyone who could help?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [1 July 2023 07:20 UTC](https://discourse.nodered.org/t/modbus-server-error-when-connection-to-fogwing/78006/3 "2023-07-01T07:20:20Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
