Hi, I think I have found the solution to the problem you are having. I was having the same problems myself, the reasons for these problems I believe are twofold.
1.)
In order to login to an Internet game your GamespyID account must have been created through the CivIV interface, if you attempt to login using a pre-existing account you will receive an error. I believe this is due to an association being made on the gamespy servers which allows a GamespyID account to use the CivIV lobby when an account is made through the CivIV interface, however for pre-existing accounts this association does not exist therefore the Gamespy CivIV lobby server wont recognise your account. The error you will receive at the interface when trying to connect to an account that was
not created using the CivIV interface is; "The Username you entered is not valid". The error noted from logging is "ERR: The uniquenick provided is incorrect.".
2.)
When creating an account you must use a unique username in the "Login:" field. Or in other words a username which is not already in use by other players, if you're trying to create an account with a common username and are receiving an error then it is likely that the name is already in use. The error that you will see from the CivIV interface is; "The login attempt has failed". However the true cause for this error is only revealed once logging is enabled and is the following error message; "ERR: The uniquenick is already in use.". Basically the error you see from the CivIV game interface is not explicit in describing what the actual cause of the problem was, you receive a generic attempt failed regardless of the cause for the failure.
Furthermore, you will have similar problems if you're trying to make a new account using an email address which is already associated with an existing GamespyID account. I believe the error that is shown in the logs is; "ERR: The password does not match the email address." although I have not thoroughly tested that point. Avoid using an email address which has already been used to create a GamespyID.
To summarize, in order to login you must be using a GamespyID account which was created through the CivIV interface. When creating a new account ensure that the username you pick (for the the "Login:" field) is unique, i.e. it is not something common which may already be in use. Also don't use an email address which already has a GamespyID.
I hope this helps to fix the problems anyone here is having, also if you would like to enable logging for your own CivIV it is explained here on a
2kgames support page.
ps. If you already have an existing GamespyID registered to an email address and you dont want to create another email address / GamespyID in order to play CivIV here is a little tip which I used myself. Login to the GamespyID from
www.GamespyID.com and change the following details; change nickname to something you dont want to use, change the email address to something you dont want to use, enter the password fields identically. Warning: be careful to make sure you change the nickname to something you dont want, and if you want to be safe use a valid email address and password in case there is a mistake. If you accidently changed the email address and password to something you dont know but left the old nick you may lose access to that nickname. I am not responsible for any mistakes attempting this
OK, I think that about covers it. Good luck all, I hope there arent any further problems that I havent discovered.