DNAD
Denoβ€’3y agoβ€’
9 replies
DNA

Cannot access web server from other network devices when compiled

Hello. Im kinda new to deno and i just compiled my first bigger project with deno, but when the task is running, i can access the website directly from my pc, but not from my phone, which is in the same network.
This is my code:
import {serve} from "https://deno.land/std@0.188.0/http/server.ts";
serve(handler, {port: Number(env.PORT), onListen: () => console.log(`Listening on http://localhost:${env.PORT}`)});
Was this page helpful?