Are both the http and websocket server using the same codebase or are they different projects / frameworks?
Normally you don’t need a dedicated port for websockets: normal http requests can be upgraded to a websocket connect.
I’m not sure if this is the “gateway” thing from nestjs, but looking at the docs they specifically mention it should listen on the same port: Documentation | NestJS - A progressive Node.js framework
In general, each gateway is listening on the same port as the HTTP server , unless your app is not a web application, or you have changed the port manually.