Skip to content

Commit 63ad776

Browse files
author
Matthew Valancy
committed
Fix GraphQL server to allow external connections
- Explicitly bind to '0.0.0.0' interface for IPv4 external access - Resolves port 4127 connectivity issues from external hosts
1 parent d1931cd commit 63ad776

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/server/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ async function startServer() {
7676
res.json({ status: 'ok', timestamp: new Date().toISOString() });
7777
});
7878

79-
httpServer.listen(PORT, () => {
79+
httpServer.listen(PORT, '0.0.0.0', () => {
8080
console.log(`🚀 GraphQL server ready at http://localhost:${PORT}/graphql`);
8181
console.log(`🔌 WebSocket server ready at ws://localhost:${PORT}/graphql`);
8282
});

0 commit comments

Comments
 (0)