Express and Socket.io server

I have an Express server and a Socket.io server that lies within the same repository.
They run in different ports (5007 and 5009).
Render has successfully run the first server then forwarded it to their custom domain.
Now, how about the other one? You cannot access it using url:5009

image

I guess you need to run two seperate web services for Each as Your Files are in one repo but their Dependencies and Package file would be Different

1 Like

Are there no other ways to solve this but to put them in separate services?

Are u able to run this services on your Localhost within One Terminal ?

Yes, I am. Thanks for your time.

Here, I changed the port right after the first run.
So in the terminal it may look like this:

image