/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-access-the-raw-node-09008ee149ba-access-the-raw-node-js-apis-s0457-c0000.md
Access the raw Node.js APIs - hono-docs
Access the raw Node.js APIs Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt access the raw node j...
Access the raw Node.js APIs
Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#access-the-raw-node-js-apis
Summary
You can access the Node.js APIs from c.env.incoming and c.env.outgoing. ``ts import { Hono } from 'hono' import { serve, type HttpBindings } from '@hono/node-server' // or Http2Bindings` if you use HTTP2 type Bindings = HttpBinding...
Content
You can access the Node.js APIs from c.env.incoming and c.env.outgoing.
import { Hono } from 'hono'
import { serve, type HttpBindings } from '@hono/node-server'
// or `Http2Bindings` if you use HTTP2
type Bindings = HttpBindings & {
/* ... */
}
const app = new Hono<{ Bindings: Bindings }>()
app.get('/', (c) => {
return c.json({
remoteAddress: c.env.incoming.socket.remoteAddress,
})
})
serve(app)