How to access Babylon.js Editor live preview from other devices

@sebavan

Thanks for your reply. I tried the following two patten.

(1)
I developed a simple environment without Babylon.js Editor in the same network as the above post. The environment has webpack.config.js like this.

const path = require('path');
const outputPath = path.resolve(__dirname, './');
module.exports = {
    
    entry: './src/index.js',
    output: {
        filename: 'main.js',
        path: outputPath
    },
    devServer: {
        contentBase: outputPath,
        watchContentBase: true,
        port: 3000,
        host:'0.0.0.0'
    }
}

I executed the command “npx webpack-dev-server” and my iPhone and android can access “http://‘my pc IP’:3000”.

(2)
I also tried to separate part of my Babylon.js Editor project “index.html”, “scenes folder”, and “dist folder” according to the post. The network is the same as the above post.

I used “Live Server” of Visual Studio Code for the separated project. My iPhone and android can also access “http://‘my pc IP’:5500”. (“5500” is the default port setting of Live Server.)