# Send host & port to client modbus

**URL:** <https://discourse.nodered.org/t/send-host-port-to-client-modbus/89764>\
**Category:** General\
**Tags:** node-red-dashboard, modbus\
**Created:** [25 July 2024 18:42 UTC](https://discourse.nodered.org/t/send-host-port-to-client-modbus/89764 "2024-07-25T18:42:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abrahamayalap](https://avatars.discourse-cdn.com/v4/letter/a/ac91a4/32.png) [@abrahamayalap](https://discourse.nodered.org/u/abrahamayalap)\
**Post date:** [25 July 2024 18:42 UTC](https://discourse.nodered.org/t/send-host-port-to-client-modbus/89764/1 "2024-07-25T18:42:04Z")

</div>

Hello, I'm trying to send host and port from two inputs usind dashboard ui, I want to stablish a new Modbus Client and read data with **FC4** , however I have not found a solution to this, I tried modbus-server, modbus-flex-connector and only modbus-read.

Flow for input data here:`

```auto
[
    {
        "id": "c3c2e4c9.3c0f88",
        "type": "ui_text_input",
        "z": "1ec350e76f8e7070",
        "name": "IP Input",
        "label": "Modbus IP",
        "tooltip": "",
        "group": "b1fa6f68.1e245",
        "order": 1,
        "width": 0,
        "height": 0,
        "passthru": true,
        "mode": "text",
        "delay": "0",
        "topic": "modbus_ip",
        "x": 200,
        "y": 420,
        "wires": [
            [
                "d391de55.05dff"
            ]
        ]
    },
    {
        "id": "d391de55.05dff",
        "type": "ui_text_input",
        "z": "1ec350e76f8e7070",
        "name": "Port Input",
        "label": "Modbus Port",
        "tooltip": "",
        "group": "b1fa6f68.1e245",
        "order": 2,
        "width": 0,
        "height": 0,
        "passthru": true,
        "mode": "number",
        "delay": "0",
        "topic": "modbus_port",
        "x": 200,
        "y": 480,
        "wires": [
            [
                "16ff5b28.3f77a5"
            ]
        ]
    },
    {
        "id": "16ff5b28.3f77a5",
        "type": "ui_button",
        "z": "1ec350e76f8e7070",
        "name": "Connect Button",
        "group": "b1fa6f68.1e245",
        "order": 3,
        "width": 0,
        "height": 0,
        "passthru": false,
        "label": "Connect",
        "tooltip": "",
        "color": "",
        "bgcolor": "",
        "icon": "",
        "payload": "connect",
        "payloadType": "str",
        "topic": "",
        "x": 210,
        "y": 540,
        "wires": [
            [
                "b9e1674b.a7d4d8"
            ]
        ]
    },
    {
        "id": "b1fa6f68.1e245",
        "type": "ui_group",
        "name": "Default",
        "tab": "2f258f0e.2b0d",
        "order": 1,
        "disp": true,
        "width": "6",
        "collapse": false
    },
    {
        "id": "2f258f0e.2b0d",
        "type": "ui_tab",
        "name": "Home",
        "icon": "dashboard",
        "order": 1,
        "disabled": false,
        "hidden": false
    }
]

```

---

<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:** [23 October 2024 18:42 UTC](https://discourse.nodered.org/t/send-host-port-to-client-modbus/89764/2 "2024-10-23T18:42:46Z")

</div>

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