I've been wondering if it's possible to host multiple applications using a single port on one IP address. I'm meaning a similar method to Apache Virtual Hosts where you can assign domains/subdomains to specific directories, though I'd like to do this where I can host several applications using one port but have a subdomain which determines which application you are connecting to.
An example of how this would work in my head is:
app_server.exe (Instance 1): 111.111.111.111:9999
app_server.exe (Instance 2): 111.111.111.111:9999
Then if I connect to app1.example.com
it connects to Instance 1
, whereas app2.example.com
would connect to Instance 2
.
I have no idea whether this is actually possible or not, but I have look and I have no clue as to what it would even be called, so this is my best bet.