In my work network I am running 2 node-red instance on 2 different PC's. The Node-Red installation is a global install so any windows user can access the same node-red instance.
Using the TCP nodes i am tryin to send data from one PC to another and on the tcp request node I am getting this error in the debug
HTTP/1.1 400 Bad Request
Connection: close
Server flow:
[
{
"id": "5b7dc2ed29ba5016",
"type": "tcp request",
"z": "f2ee9bee06dc25c0",
"name": "",
"server": "10.3.5.134",
"port": "1880",
"out": "time",
"ret": "string",
"splitc": "100",
"newline": "",
"trim": false,
"tls": "",
"x": 500,
"y": 360,
"wires": [
[
"013026bef268bd93"
]
]
},
{
"id": "57a3551ad707d963",
"type": "inject",
"z": "f2ee9bee06dc25c0",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "Test",
"payloadType": "str",
"x": 170,
"y": 360,
"wires": [
[
"5b7dc2ed29ba5016"
]
]
},
{
"id": "013026bef268bd93",
"type": "debug",
"z": "f2ee9bee06dc25c0",
"name": "debug 1",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 780,
"y": 360,
"wires": []
}
]
Client flow
[
{
"id": "a38bf708d922e848",
"type": "tcp in",
"z": "0724eb6e3562461f",
"name": "",
"server": "client",
"host": "10.3.5.126",
"port": "1880",
"datamode": "stream",
"datatype": "buffer",
"newline": "",
"topic": "",
"trim": false,
"base64": false,
"tls": "",
"x": 430,
"y": 980,
"wires": [
[
"2398a02fcd6060ec",
"ee91344243f7acec"
]
]
},
{
"id": "2398a02fcd6060ec",
"type": "debug",
"z": "0724eb6e3562461f",
"name": "debug 4",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 660,
"y": 1040,
"wires": []
},
{
"id": "ee91344243f7acec",
"type": "tcp out",
"z": "0724eb6e3562461f",
"name": "",
"host": "",
"port": "",
"beserver": "reply",
"base64": false,
"end": false,
"tls": "",
"x": 650,
"y": 980,
"wires": []
}
]