Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/cli/js/lib.deno.ns.d.ts>Deno.ListenOptions

A modern runtime for JavaScript and TypeScript.
Go to Latest
interface Deno.ListenOptions
import { type Deno } from "https://deno.land/x/deno@v1.0.0/cli/js/lib.deno.ns.d.ts";
const { ListenOptions } = Deno;

Properties

port: number

The port to listen on.

optional
hostname: string

A literal IP address or host name that can be resolved to an IP address. If not specified, defaults to 0.0.0.0.