diff --git a/doc/api/http2.md b/doc/api/http2.md
index 1b2d7c246367d2..61f2bd8ec8f1d9 100644
--- a/doc/api/http2.md
+++ b/doc/api/http2.md
@@ -354,7 +354,7 @@ server.on('stream', (stream, headers) => {
stream.end('
Hello World
');
});
-server.listen(80);
+server.listen(8000);
```
Even though HTTP/2 streams and network sockets are not in a 1:1 correspondence,
@@ -2532,7 +2532,7 @@ server.on('stream', (stream, headers) => {
stream.end('Hello World
');
});
-server.listen(80);
+server.listen(8000);
```
### `http2.createSecureServer(options[, onRequestHandler])`
@@ -2673,7 +2673,7 @@ server.on('stream', (stream, headers) => {
stream.end('Hello World
');
});
-server.listen(80);
+server.listen(8443);
```
### `http2.connect(authority[, options][, listener])`