do u know how to set custom port for Unity/WebGL? beacose i can’t open my project from other devices on website in localhost beacose i need to be connected to port 8080
I would be very thankful
can run it manually from commandline with:
“C:/Program Files/Unity2019_4/Editor/Data/MonoBleedingEdge/bin/mono.exe” “C:/Program Files/Unity2019_4/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/SimpleWebServer.exe” “X:/YourFolder/YourProject/Builds” 60606
info
or if you need to host it on your pc, would be easier to install those web servers, like Xampp,
to have it always running.
I wrote a blog post on how to setup IIS and Unity WebGL on your computer.
In these steps you can set the port.
Only thing missing is the steps to enable BR/GZip compression and it’s pretty complete. Good Job!
Well this is for localhost only, I’m guessing if setting up a server then it would be important. Otherwise it works fine without the compression locally.
True. However, I do find it useful test compression locally as well to verify loading times, build sizes, download times (emulated), web caching handling.