I want to be able to access a certain domain (let's say example.com) on my computer but actually access localhost:3333. example.com is always accessed on port 22.I think that I could use /etc/hosts to change example.com to 127.0.0.1, but then the applications would access 127.0.0.1:22 although they should access 127.0.0.1:3333.How can I remap example.com:22 to 127.0.0.1:3333 or remap example.com:* (any port) to 127.0.0.1:3333? (I don't care which one.)
Redirect combination of domain + port
networking;port forwarding