chiweitree说的对,可以先用“TCP&UDP通讯调试助手”这个工具连一下你的服务端看是否有问题。这是下载链接http://download.csdn.net/detail/yokiyaki/1145571