The only port that’s taken by default is 8283. The only ports that work are 5900, 8099 and 9000.
5900 is assumed to be VNC and will break deployments. So in total you have to make do with 3 ports right now. That’s not enough for even a basic server, where you want a test port, a debug port, a primary dev API port, a secondary dev API port, a testing GUI port (vitest-gui) and a repl server port… that’s six.
And that’s not accounting for the web client(s) and their tools if it’s in the same repo.
Based on the way replit is designed, afaik you are supposed to just create repls for each, instead of hosting on different ports for each. Each project has it’s own computer/environment instead of it’s own port.
This seems really helpful. I’ve been looking for a way to open files in the ide from code. I don’t love VIM/nano. It’s hard to get other people to learn vim too. the replit-git-editor command isn’t always available and fails a lot.
I’ll give curl http://localhost:8283/files/open a try… I have no idea what payload I should give it. or how to tcpdump on a replit without root.