So basically I'm creating an online game. I have one server that holds all the username / password information (login server) and then one or more servers that host the game (game servers). The Client connects to the login server which validates their credentials, check to see what game server they're on, and then tells that server to connect to the client.
I know very little about security but I figured it'd be more secure to have the client listen for a connection from it's game server instead of having the game server listening for clients. I figured that would make DDoS attacks easier to prevent at least.
The problem is I've read that if your servers are behind certain types of routers or load balancers you won't be able to easily get the ip of the client. I need that for the login server to tell the game server who to connect to... unless I can just transfer an open connection. I believe certain games have server clusters that let clients float between one or another so I figured somehow it's possible to pass a connection from one server to another. How is that generally done?
Maybe I'm way off?