So, me and a friend built a custom gameserver in java. This gameserver listens for HTTP and TCP messages from a specific ip / port given to it (Either localhost or the device's external IP address for port forwarding). Then, you can take that IP / Port combination and use it in the game, and it connects fine. The server works beautifully. The issue is, we want to setup a domain for the server. The virtual private server hosting the actual gameserver is a Google Cloud Virtual Machine. Im using Cloud DNS to connect my domains to the apache webservers on my VM.
I was wondering if theres a way to connect to my gameserver's IP and Port through a subdomain... such as gateway.gameserver.com
I tried using an SRV record, and plugging in my custom port + ip address, but it didnt respond.
I also tried just connecting to my domain (Which uses the same IP Address as my game server) and adding a port to the end, and that didnt work.
Im out of ideas.
I would really like to be able to connect to my custom gameserver through gateway.gameserver.com
instead of 100.100.100.100:5000
or something.