]> git.cworth.org Git - lmno-server/commitdiff
Listen on 0.0.0.0 (all interfaces)
authorCarl Worth <cworth@cworth.org>
Fri, 6 Mar 2026 11:38:33 +0000 (03:38 -0800)
committerCarl Worth <cworth@cworth.org>
Fri, 6 Mar 2026 11:38:33 +0000 (03:38 -0800)
This is also helpful for local development, (allowing running LMNO
on my laptop and then accessing it from other machines).

lmno.js

diff --git a/lmno.js b/lmno.js
index 635935556f620ec2361f72642b50a03f5de336a2..a220ea2eb6fba0ddb25391bf258d1255320e8b46 100644 (file)
--- a/lmno.js
+++ b/lmno.js
@@ -400,6 +400,6 @@ for (let key in engines) {
   app.use(`/${engine.meta.identifier}/[a-zA-Z0-9]{4}/`, router);
 }
 
-app.listen(4000, function () {
-  console.log('LMNO server listening on localhost:4000');
+app.listen(4000, '0.0.0.0', function () {
+  console.log('LMNO server listening on 0.0.0.0:4000');
 });