# Access Node-RED with IPC support

**URL:** https://discourse.nodered.org/t/access-node-red-with-ipc-support/64382
**Category:** General
**Created:** [26 June 2022 06:32 UTC](https://discourse.nodered.org/t/access-node-red-with-ipc-support/64382 "2022-06-26T06:32:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![augjoh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/augjoh/32/26464_2.png) [@augjoh](https://discourse.nodered.org/u/augjoh)
#### Post date: [26 June 2022 06:32 UTC](https://discourse.nodered.org/t/access-node-red-with-ipc-support/64382/1 "2022-06-26T06:32:31Z")

</div>

Hi all,

I would like to access Node-RED over a Unix Domain Socket, but the current implementation does not allow for this. Node.js' http(s) module has support for IPC ([Net | Node.js v18.4.0 Documentation](https://nodejs.org/api/net.html#ipc-support)). I've played around with this a litte bit, and the following somewhat crude change did enable it, when placing a socket (like `/var/run/node-red.sock`) in `uiHost` configuration option of `settings.js`

```auto
> diff node_modules/.bin/node-red node-red.bck
440c440,445
< server.listen(settings.uiPort,settings.uiHost,function() {
---
> let args;
> if (settings.uiHost.startsWith('/'))
> args = [settings.uiHost];
> else
> args = [settings.uiPort, settings.uiHost];
> server.listen(...args,function() {

```

Has anyone tried something like this before? Is this possible out-of-the-box without any code changes?

---

<div class="post-metadata">

### Author: ![augjoh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/augjoh/32/26464_2.png) [@augjoh](https://discourse.nodered.org/u/augjoh)
#### Post date: [21 July 2022 14:26 UTC](https://discourse.nodered.org/t/access-node-red-with-ipc-support/64382/2 "2022-07-21T14:26:26Z")

</div>

The following configuration is working with Apache httpd (2.4.54):

```auto
<Location />
        ProxyPass unix:/var/run/node-red/sock|http://127.0.0.1/
        ProxyPassReverse unix:/tmp/nodejs.sock|http://127.0.0.1/
        RequestHeader set "X-Forwarded-Proto" "https"
</Location>
<Location /admin/comms>
        ProxyPass unix:/var/run/node-red/sock|ws://localhost/admin/comms
        ProxyPassReverse unix:/tmp/nodejs.sock|ws://localhost/admin/comms
        RequestHeader set "X-Forwarded-Proto" "https"
</Location>

```

Perhaps someone can make use of it. How can I create a feature request for IPC support in Node-RED?

---

<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: [19 September 2022 14:27 UTC](https://discourse.nodered.org/t/access-node-red-with-ipc-support/64382/3 "2022-09-19T14:27:08Z")

</div>

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