interface Deno.ListenOptions


port: number[src]

The port to listen on.

hostname: string

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

Note about While listening works on all platforms, the browsers on Windows don't work with the address You should show the message like server running on localhost:8080 instead of server running on if your program supports Windows.