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

Question: How to set it from localhost to machine name / IP address? #293

Open
frankjonen opened this issue Jun 8, 2023 · 4 comments
Open

Comments

@frankjonen
Copy link

I want to use the UI from my iPad as a reference tool.

However when I try to access the server with anything other than the home loopback, it can't be found. What parameter do I need to set so it works normally across the network?

Thanks.

@wylited
Copy link

wylited commented Jun 11, 2023

I'm not an expert at org-roam-ui, I've only recently started using it.
I believe you can set the host under next.config.js as

host: '0.0.0.0'

So that it will listen to all networks.

Then you have to open your own host machine's firewall on port 35901
I use ufw so it looks like

ufw allow 35901/tcp
ufw allow 35901/udp

I also believe you will need to edit the org-roam-ui.el file and change the websocket server from localhost to 0.0.0.0

at org-roam-ui.el here

You may also need to port forward 35901 on your router to make it accessible.

I really hope this helps (or works, I haven't had the time to test it)
If one of the maintainers sees this, and I am wrong, I apologize.

@frankjonen
Copy link
Author

I tried a bunch of things now and all only resulted in errors.
So I wrote a quick forwarder in Go. It's here if someone wants it.

@digitables
Copy link

I tried a bunch of things now and all only resulted in errors. So I wrote a quick forwarder in Go. It's here if someone wants it.

Hey there, this doesn't seem to work. I'm attempting to run my Org-Roam through a VPS via nginx so I can access it anywhere, but the JS seems to have 'localhost' hardcoded. I don't know how NPM projects work so I don't know how to fix it.

@frankjonen
Copy link
Author

Oh sorry, I forgot to follow this up. I got the UI to render and didn't have much time that day to check further.

I think it's because it does local file-system stuff in a way that can't be routed. My solution for now is to shop around for a school/edu laptop that can run Emacs well enough without being obnoxious to the wallet (I don't like laptops).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants