Cannot connect remotely

I have this working locally, but when I try to connect remotely I cannot. I have used port forward in my router to 5173. But when I try to load the page, it converts from http://xxx.xxx.xxx.xxx:5173 to www.xxx.xxx.xxx.xxx:5173 and just doesn’t load.

I am hosting on a Mac mini if it helps?

I can connect to open web remotely already so it’s not a router issue. Can anyone help?

Hi @nycsavage,

this is more a hosting problem, than a bolt.diy problem itself (just for new users to know).

I dont know why it add the “www”. Seems like a browser problem. Did you test with chrome? Safari is known to make problems with bolt itself at least.

Also I would not recommend portforwarding to the app directly. Normally you would haven an Reverse-Proxy like nginx or caddy in front of it and also serve via https and not http (without you can get all sorts of other problems like cors issues etc. as well).

In gerneral I would not recommend making your local install in your priviat network, public, if you dont know what you do and what security implications it has.

Would be also interesting why you would like to connect to your local instanc from outside. This just makes sense for me if you use Ollama with local models as well. Otherwise I dont see any reasons why you would do that instead of deploying it to Cloudflare etc.

Thank you for taking the time to reply to me. I hear what you’re saying, and I agree with most of it. But I can’t get my head around how OpenWeb connects externally without the need to tweak (although I did port forward) and Bolt.DIY doesn’t. I have Asperger’s and need logic to understand.

I need external access so I can continue my project whilst at work (we have lots of downtime sat in the office).

Your welcome :slight_smile:

What do you mean by “openweb”? OpenWebUI? Maybe explain your setup a bit more in detail. looks like there is something missing or I just dont understand :slight_smile:

I understood:

  • Server (your mac) running with bolt.diy installed
  • Client => another pc you want to connect to this server
    => Question: Do you always use this client for implementing or do you use the server/mac when not away?
    => I ask, because bolt.diy does not support sync of chats at the moment, so this would just work, if you are always on the “Client” and working with this

I’m sorry, one of the downsides to being self taught is that you don’t know the terminology.

I have a Mac mini that has OpenWebUI connected to Ollama which I can use my iPhone and iPad to remotely connect to when I’m in work.

I installed Bolt.DIY and when using locally, it works fine, really fast in fact, maybe not as accurate as Bolt.new but still acceptable.

I would like a similar setup to be able to connect remotely to Bolt.DIY so that I can start/continue my project remotely. Then when I get home, I can continue where I left off and vice versa.

Hope that makes sense.

I found the solution!!! I started the server with pnpm run dev and added --host to the end. Now I can connect via external IP (I haven’t tried from work yet, that will be done tomorrow)

Ah ok, yes that makes sense. Thought you did that and the problem is more the router/firewall etc.

Let us know if it works at the end :slight_smile: