I'm trying to make a version of the game Inscryption for my friends and I to play when we hang out. I'm currently using PhaserJS for this project and I want to set up a local LAN server that we can all connect to via our phones. I have never done anything related to netowrking, websockets, HTTP, or anything of the sort. I'm using Vite as my framework, but I dont know if it has anything that could help me out with what I'm trying to do.
Heres my server code, but I dont really know how to run it in a way where I can connect to it on my phone and then be able to interact with the game.
import express from "express";
import path from 'path'
const app = express()
const port = 433
const localIP = '192.168.0.238'
app.use(express.static(path.join(__dirname, 'client')))
app.listen(port, localIP, () => {
console.log(`Server is running at http://${localIP}:${port}`)
})