I am working on a shared linux server as a normal user with no root access. Can I start a program listening on a local tcp port, and be the only user able to connect to that port? I can control the address and port the program listens on.
For example this program could be a development / test version of a webserver.
Further, as the server only accepts incoming tcp connections on port 22 (ssh), I am forwarding the local port over ssh so I can connect to the port using my laptop.
ssh -L 8080:localhost:8000 evaben@dice01 So a solution that still allows that or similar would be good.