/Knowledge/sources/honojs__hono/llms-full/deno-change-port-number--be86e7ee4f8d.md
Deno: Change port number - hono-docs
Deno: Change port number Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt change port number Summary Yo...
Deno: Change port number
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#change-port-number
Summary
You can specify the port number by updating the arguments of Deno.serve in main.ts: ts Deno.serve(app.fetch) // [!code --] Deno.serve({ port: 8787 }, app.fetch) // [!code ++]
Content
You can specify the port number by updating the arguments of Deno.serve in main.ts:
Deno.serve(app.fetch) // [!code --]
Deno.serve({ port: 8787 }, app.fetch) // [!code ++]
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#change-port-number",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / Deno > Change port number",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 434,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "Deno: Change port number",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}