brightsign / brightsign/node.js-starter-project

Trouble accessing local server on startup

Open
#12 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Brightscript
Stars
24
Forks
17
PR merge metrics
No merged PRs in 30d

Description

Hello and thanks for this helpful utility! I've got a node server running on a XD1034, port 9090, serving files from a directory at `/storage/sd/app/public`. I am able to successfully view these files from a machine on my local network at `http://:9090`. However, when I add an HTML widget to the XD set to display `http://localhost:9090` or `http://:9090`, the player fails to render the page on startup. I know the server is running because I can still access the files from another machine. Meanwhile, the HTML widget shows up in my `chrome://inspect` devices, but the console swallows any commands I submit without executing anything.

Stranger still, if I set the player to render another site, e.g `http://google.com`, and then open remote dev tools for the player and run `window.location = http://:9090`, the HTML widget renders the local site fine. So it seems there is an issue with access the local server from an HTML widget only on startup? Is there a step missing to enable access to `http://localhost:9090` as the default Site Source URL?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.