Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node-RED is bound to 127.0.0.1 #7

Closed
sammachin opened this issue Jun 10, 2022 · 0 comments · Fixed by #8
Closed

Node-RED is bound to 127.0.0.1 #7

sammachin opened this issue Jun 10, 2022 · 0 comments · Fixed by #8
Labels
bug Something isn't working
Milestone

Comments

@sammachin
Copy link
Contributor

Current Behavior

When a project is deployed to run on a device node-red is only listening on the localhost interface,

[NR] Welcome to Node-RED
[NR] ===================
[NR] 10 Jun 14:09:55 - [info] Node-RED version: v2.2.2
[NR] 10 Jun 14:09:55 - [info] Node.js  version: v16.15.1
[NR] 10 Jun 14:09:55 - [info] Linux 5.15.32-v7+ arm LE
[NR] 10 Jun 14:09:57 - [info] Loading palette nodes
[2022-06-10T13:09:58.966Z] INFO: Calling home
[2022-06-10T13:09:59.122Z] INFO: No updated needed
[NR] 10 Jun 14:09:59 - [info] Settings file  : /opt/flowforge-device/project/settings.js
[NR] 10 Jun 14:09:59 - [info] Context store  : 'default' [module=memory]
[NR] 10 Jun 14:09:59 - [info] User directory : /opt/flowforge-device/project
[NR] 10 Jun 14:09:59 - [warn] Projects disabled : set editorTheme.projects.enabled=true to enable
[NR] 10 Jun 14:09:59 - [info] Flows file     : /opt/flowforge-device/project/flows.json
[NR] 10 Jun 14:09:59 - [info] Server now running at http://127.0.0.1:1880/
[NR] 10 Jun 14:09:59 - [info] Starting flows
[NR] 10 Jun 14:09:59 - [info] Started flows

This means that if my flow has say an http endpoint I cannot call it from outside the device.

Expected Behavior

Node-RED should listen on all device interfaces

Steps To Reproduce

Create a flow with a /test http-in node and appropriate response.

Deploy to a device

Attempt to call that /test endpoint on the device's IP address

Environment

  • FlowForge version: 0.6.0
  • Device Agent version : 0.0.1
  • Node.js version: 16
  • npm version: 8
  • Platform/OS: Raspbian
  • Browser: n/a
@sammachin sammachin added the bug Something isn't working label Jun 10, 2022
@sammachin sammachin added this to the 0.7 milestone Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant