> ifconfig | grep 'inet 19'
inet 192.168.2.20 netmask 0xffffff00 broadcast 192.168.2.255
inet 192.168.2.215 netmask 0xffff0000 broadcast 192.168.255.255
inet 192.168.4.99 netmask 0xffff8000 broadcast 192.168.127.255
# install deno *nix
curl -fsSL https://deno.land/x/install/install.sh | sh
# install deno winders
iwr https://deno.land/x/install/install.ps1 -useb | iex
touch index.ts
import { serve } from "https://deno.land/std/http/server.ts";
const s = serve({ hostname: "192.168.2.20", port: 8000 });
for await (const req of s) {
req.respond({ body: "Hello World\n" });
}
deno run --allow-net index.ts