Synopsis: Can I please have the standalone server listen on multiple ports, acting the same as virtualhosts?
Background:
I used to have people connect to my public ipv4 literal directly, and have multiple servers on multiple ports. This also applies for scanning bots that obviously don't know my DNS names.
Now I have a new DNS name, SRV records, IPv6 only with backup FQDNs for v4 on different ports. The only problem now is getting people to use it.
I could just flood every discord server I host for about the change, but discord servers are hectic, people might miss the message and keep using the old IP literal, and complain to me if my ISP ever makes me renumber.
The way I have it set up currently is that the ports are all forwarded to one instance running the standalone ServerListPlus, to give a disconnect message telling users to use the DNS names.
Now comes the problem: How do I show separate messages to users connecting to different ports?
What I could do is run multiple instances of ServerListPlus, but that seems wasteful. What I'd rather do is have one instance listen on multiple ports, and then show separate messages based on the port it comes in on, similar to how virtualHosts work.
Can someone please add this functionality? I would submit a PR but I don't know java, as I mostly do low level C.
Synopsis: Can I please have the standalone server listen on multiple ports, acting the same as virtualhosts?
Background:
I used to have people connect to my public ipv4 literal directly, and have multiple servers on multiple ports. This also applies for scanning bots that obviously don't know my DNS names.
Now I have a new DNS name, SRV records, IPv6 only with backup FQDNs for v4 on different ports. The only problem now is getting people to use it.
I could just flood every discord server I host for about the change, but discord servers are hectic, people might miss the message and keep using the old IP literal, and complain to me if my ISP ever makes me renumber.
The way I have it set up currently is that the ports are all forwarded to one instance running the standalone ServerListPlus, to give a disconnect message telling users to use the DNS names.
Now comes the problem: How do I show separate messages to users connecting to different ports?
What I could do is run multiple instances of ServerListPlus, but that seems wasteful. What I'd rather do is have one instance listen on multiple ports, and then show separate messages based on the port it comes in on, similar to how virtualHosts work.
Can someone please add this functionality? I would submit a PR but I don't know java, as I mostly do low level C.