Is the "Connection reset" occurring during the initializaiton of the agent (where you enter the server IP and port, admin username/password, and client IP and port), or does it get through that OK, and is failing in subsequent communitcation? If it is failing during initialization, you will want to double-check that the client IP address that is auto-detected is the correct one for the server connection, and correct it if it is not.