How to let the code (outcome from bolt.diy) run on Ubuntu server

I was happy to create a WebApp with bolt.diy.
Now I want to run the code (outside of bolt.diy) in a Ubuntu server vmware on my windows 11 host.

I processed following:

  • install npm (also with node.js)
  • npm install --save-dev vite@latest @vitejs/plugin-react@latest
  • npm install
  • npm run build
  • npm run dev

I got this answer from the service:

  VITE v5.4.11  ready in 125 ms

  ➜  Local:   http://localhost:3000/
  ➜  Network: use --host to expose
  ➜  press h + enter to show help

On my host system I put in
‘’’
http://192.168.154.129:3000
‘’’
in the address of the chrome browser. But the server 192.168.154.129 refused the connection.

Does anyone have an idea?

hey,
nice.

As seen in your service log, you just serve for localhost.

you have to expose it to thoer hosts as mentionend in the second line:

  ➜  Network: use --host to expose

So use:

npm run dev -- --host 0.0.0.0

Then you will get this:

  VITE v5.4.11  ready in 125 ms

  ➜  Local:   http://localhost:3000/
  ➜  Network: http://192.168.x.x:3000/   <-- This is now accessible from other devices
  ➜  press h + enter to show help
1 Like

:grinning:

Thanks a lot!
It works.
I struggling most of the time with these networks…

1 Like