I'm getting a gateaway error

Read this, If you are logging in more then 2 chars at the same time you need to have them on different gateway servers. Best solution is to only have 1 char in the queue at once.