That error generally occurs when it fails to make a socket connection.
If it's working properly on the simulator, have you confirmed that the device is set up properly and there's no network security/firewall restrictions that would prevent it from making a connection to the server? -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/