设为首页收藏本站

AnyChat技术支持论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 3280|回复: 7

anychat服务器无法连接

[复制链接]

6

主题

32

帖子

88

积分

注册会员

Rank: 2

积分
88
发表于 2014-3-6 09:02:45 | 显示全部楼层 |阅读模式
    我开发了一个androi的应用,想访问我笔记本上自己开发的服务器,但我是通过cmcc连接网络,而我的手机是通过wiff共享精灵,通过自己的笔记本上网,这样我就发现我的手机根本就无法连接到我笔记本上的服务器,我想问问,我该怎么设置?
  还有一个问题是关于android应用的,我觉得应该只有一个activity来接收数据和发送数据,其他的界面都可以用fragment来显示数据,这样是不是很好?
回复

使用道具 举报

5

主题

1269

帖子

3677

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
3677
发表于 2014-3-6 09:15:20 | 显示全部楼层
1、如果服务器部署成功,手机和电脑都是在同一局域网的话,是可以访问的。请上传下android的日志文件,我们分析下

2、这样是也是可以的,只要能保证数据能接收和发送就行了
回复 支持 反对

使用道具 举报

6

主题

32

帖子

88

积分

注册会员

Rank: 2

积分
88
 楼主| 发表于 2014-3-6 09:33:00 | 显示全部楼层

[2014-03-04 13:13:06(446)]        ---------------------Init Service--------------------------
[2014-03-04 13:13:06(524)]        Current File Version[4, 9, 0, 0],Build time:2014-01-01 11:41:52
[2014-03-04 13:13:06(570)]        Start Server At Demo Mode!
[2014-03-04 13:13:06(648)]        Load brservernetlayer.dll success!(V4.9, Build time:Jan  1 2014 11:41:21)
[2014-03-04 13:13:06(648)]        Start TCP Server Successed(port=8906)!
[2014-03-04 13:13:06(648)]        Start UDP Server Successed(port=8907)!
[2014-03-04 13:13:06(695)]        AnyChat IPC Filter Plus Init, Build Time:Jan  1 2014 11:41:32
[2014-03-04 13:13:06(695)]        Load SDK Filter Plus:IPCFilterPlus.dll Success, ver:SDK Filter Plus (IPC), for Windows V4.9
[2014-03-04 13:13:12(202)]        Successful communicate with the business server!
[2014-03-04 13:14:39(827)]        Fails to communicate with the business server!
[2014-03-04 13:14:48(922)]        Successful communicate with the business server!
[2014-03-04 13:15:51(989)]        AnyChatCoreServer has exited with error code:0
[2014-03-04 23:02:49(967)]        ---------------------Init Service--------------------------
[2014-03-04 23:02:50(217)]        Current File Version[4, 9, 0, 0],Build time:2014-01-01 11:41:52
[2014-03-04 23:02:50(279)]        Start Server At Demo Mode!
[2014-03-04 23:02:50(342)]        Load brservernetlayer.dll success!(V4.9, Build time:Jan  1 2014 11:41:21)
[2014-03-04 23:02:50(342)]        Start TCP Server Successed(port=8906)!
[2014-03-04 23:02:50(435)]        Start UDP Server Successed(port=8907)!
[2014-03-04 23:02:50(498)]        AnyChat IPC Filter Plus Init, Build Time:Jan  1 2014 11:41:32
[2014-03-04 23:02:50(498)]        Load SDK Filter Plus:IPCFilterPlus.dll Success, ver:SDK Filter Plus (IPC), for Windows V4.9
[2014-03-04 23:03:34(820)]        Successful communicate with the business server!
[2014-03-04 23:05:20(510)]        Fails to communicate with the business server!
[2014-03-04 23:08:04(902)]        Successful communicate with the business server!
[2014-03-04 23:08:56(818)]        Fails to communicate with the business server!
[2014-03-04 23:08:58(721)]        Successful communicate with the business server!
[2014-03-04 23:09:14(383)]        Fails to communicate with the business server!
[2014-03-04 23:09:16(442)]        Successful communicate with the business server!
[2014-03-04 23:10:37(563)]        Fails to communicate with the business server!
[2014-03-04 23:11:46(056)]        Successful communicate with the business server!
[2014-03-04 23:11:47(335)]        Fails to communicate with the business server!
[2014-03-04 23:11:55(588)]        Successful communicate with the business server!
[2014-03-04 23:12:18(567)]        Fails to communicate with the business server!
[2014-03-04 23:12:29(721)]        Successful communicate with the business server!
[2014-03-04 23:12:31(008)]        Fails to communicate with the business server!
[2014-03-04 23:12:56(245)]        Successful communicate with the business server!
[2014-03-04 23:15:41(722)]        Fails to communicate with the business server!
[2014-03-04 23:23:41(731)]        Successful communicate with the business server!
[2014-03-04 23:24:48(386)]        Fails to communicate with the business server!
[2014-03-04 23:24:50(308)]        Successful communicate with the business server!
[2014-03-04 23:25:52(157)]        Fails to communicate with the business server!
[2014-03-04 23:25:58(893)]        Successful communicate with the business server!
[2014-03-04 23:26:12(174)]        Fails to communicate with the business server!
[2014-03-04 23:28:29(679)]        Successful communicate with the business server!
[2014-03-04 23:29:58(064)]        Fails to communicate with the business server!
[2014-03-04 23:29:59(523)]        Successful communicate with the business server!
[2014-03-04 23:30:07(210)]        Fails to communicate with the business server!
[2014-03-04 23:30:52(801)]        Successful communicate with the business server!
[2014-03-04 23:31:01(039)]        Fails to communicate with the business server!
[2014-03-04 23:31:02(897)]        Successful communicate with the business server!
[2014-03-04 23:31:27(217)]        Fails to communicate with the business server!
[2014-03-04 23:31:29(158)]        Successful communicate with the business server!
[2014-03-04 23:31:40(294)]        Fails to communicate with the business server!
[2014-03-04 23:31:41(553)]        Successful communicate with the business server!
[2014-03-04 23:31:46(694)]        Fails to communicate with the business server!
[2014-03-04 23:31:53(657)]        Successful communicate with the business server!
[2014-03-04 23:32:01(135)]        Fails to communicate with the business server!
[2014-03-04 23:32:03(846)]        Successful communicate with the business server!
[2014-03-04 23:32:36(193)]        Fails to communicate with the business server!
[2014-03-04 23:32:37(287)]        Successful communicate with the business server!
[2014-03-04 23:33:07(242)]        Fails to communicate with the business server!
[2014-03-04 23:33:08(715)]        Successful communicate with the business server!
[2014-03-04 23:33:13(823)]        Fails to communicate with the business server!
[2014-03-04 23:33:15(170)]        Successful communicate with the business server!
[2014-03-04 23:33:35(253)]        Fails to communicate with the business server!
[2014-03-04 23:33:37(866)]        Successful communicate with the business server!
[2014-03-04 23:33:55(491)]        Fails to communicate with the business server!
[2014-03-04 23:33:56(488)]        Successful communicate with the business server!
[2014-03-04 23:34:13(719)]        Fails to communicate with the business server!
[2014-03-04 23:34:39(056)]        Successful communicate with the business server!
[2014-03-04 23:34:51(691)]        Fails to communicate with the business server!
[2014-03-04 23:35:00(442)]        AnyChatCoreServer has exited with error code:0
[2014-03-05 08:43:26(546)]        ---------------------Init Service--------------------------
[2014-03-05 08:43:26(624)]        Current File Version[4, 9, 0, 0],Build time:2014-01-01 11:41:52
[2014-03-05 08:43:26(717)]        Start Server At Demo Mode!
[2014-03-05 08:43:26(811)]        Load brservernetlayer.dll success!(V4.9, Build time:Jan  1 2014 11:41:21)
[2014-03-05 08:43:26(811)]        Start TCP Server Successed(port=8906)!
[2014-03-05 08:43:26(827)]        Start UDP Server Successed(port=8907)!
[2014-03-05 08:43:27(014)]        AnyChat IPC Filter Plus Init, Build Time:Jan  1 2014 11:41:32
[2014-03-05 08:43:27(014)]        Load SDK Filter Plus:IPCFilterPlus.dll Success, ver:SDK Filter Plus (IPC), for Windows V4.9
[2014-03-05 08:44:38(624)]        Successful communicate with the business server!
[2014-03-05 08:46:22(159)]        Fails to communicate with the business server!
[2014-03-05 14:23:36(965)]        ---------------------Init Service--------------------------
[2014-03-05 14:23:37(015)]        Current File Version[4, 9, 0, 0],Build time:2014-01-01 11:41:52
[2014-03-05 14:23:37(299)]        Start Server At Demo Mode!
[2014-03-05 14:23:37(354)]        Load brservernetlayer.dll success!(V4.9, Build time:Jan  1 2014 11:41:21)
[2014-03-05 14:23:37(354)]        Start TCP Server Successed(port=8906)!
[2014-03-05 14:23:37(365)]        Start UDP Server Successed(port=8907)!
[2014-03-05 14:23:37(594)]        AnyChat IPC Filter Plus Init, Build Time:Jan  1 2014 11:41:32
[2014-03-05 14:23:37(594)]        Load SDK Filter Plus:IPCFilterPlus.dll Success, ver:SDK Filter Plus (IPC), for Windows V4.9
[2014-03-05 14:25:07(375)]        AnyChatCoreServer has exited with error code:0
[2014-03-05 14:25:32(027)]        ---------------------Init Service--------------------------
[2014-03-05 14:25:32(030)]        Current File Version[4, 9, 0, 0],Build time:2014-01-01 11:41:52
[2014-03-05 14:25:32(032)]        Start Server At Demo Mode!
[2014-03-05 14:25:32(100)]        Load brservernetlayer.dll success!(V4.9, Build time:Jan  1 2014 11:41:21)
[2014-03-05 14:25:32(101)]        Start TCP Server Successed(port=8906)!
[2014-03-05 14:25:32(112)]        Start UDP Server Successed(port=8907)!
[2014-03-05 14:25:32(114)]        AnyChat IPC Filter Plus Init, Build Time:Jan  1 2014 11:41:32
[2014-03-05 14:25:32(115)]        Load SDK Filter Plus:IPCFilterPlus.dll Success, ver:SDK Filter Plus (IPC), for Windows V4.9
[2014-03-05 14:26:20(690)]        Successful communicate with the business server!
[2014-03-05 14:27:23(895)]        Fails to communicate with the business server!
[2014-03-05 14:28:42(160)]        AnyChatCoreServer has exited with error code:0
[2014-03-05 14:33:00(498)]        ---------------------Init Service--------------------------
[2014-03-05 14:33:00(500)]        Current File Version[4, 9, 0, 0],Build time:2014-01-01 11:41:52
[2014-03-05 14:33:00(502)]        Start Server At Demo Mode!
[2014-03-05 14:33:00(551)]        Load brservernetlayer.dll success!(V4.9, Build time:Jan  1 2014 11:41:21)
[2014-03-05 14:33:00(552)]        Start TCP Server Successed(port=8906)!
[2014-03-05 14:33:00(562)]        Start UDP Server Successed(port=8907)!
[2014-03-05 14:33:00(564)]        AnyChat IPC Filter Plus Init, Build Time:Jan  1 2014 11:41:32
[2014-03-05 14:33:00(565)]        Load SDK Filter Plus:IPCFilterPlus.dll Success, ver:SDK Filter Plus (IPC), for Windows V4.9
[2014-03-05 14:33:08(961)]        Successful communicate with the business server!
[2014-03-05 14:33:10(785)]        Fails to communicate with the business server!
[2014-03-05 14:33:34(563)]        AnyChatCoreServer has exited with error code:0
[2014-03-05 14:33:54(456)]        ---------------------Init Service--------------------------
[2014-03-05 14:33:54(460)]        Current File Version[4, 9, 0, 0],Build time:2014-01-01 11:41:52
[2014-03-05 14:33:54(461)]        Start Server At Demo Mode!
[2014-03-05 14:33:54(517)]        Load brservernetlayer.dll success!(V4.9, Build time:Jan  1 2014 11:41:21)
[2014-03-05 14:33:54(518)]        Start TCP Server Successed(port=8906)!
[2014-03-05 14:33:54(528)]        Start UDP Server Successed(port=8907)!
[2014-03-05 14:33:54(530)]        AnyChat IPC Filter Plus Init, Build Time:Jan  1 2014 11:41:32
[2014-03-05 14:33:54(530)]        Load SDK Filter Plus:IPCFilterPlus.dll Success, ver:SDK Filter Plus (IPC), for Windows V4.9
[2014-03-05 14:34:21(474)]        Successful communicate with the business server!
[2014-03-05 14:35:18(672)]        Fails to communicate with the business server!
[2014-03-05 14:35:48(193)]        Successful communicate with the business server!
[2014-03-05 14:35:53(772)]        Fails to communicate with the business server!
[2014-03-05 14:36:43(726)]        Successful communicate with the business server!
[2014-03-05 14:37:04(180)]        Fails to communicate with the business server!
[2014-03-05 14:44:50(146)]        Successful communicate with the business server!
[2014-03-05 14:46:39(459)]        Fails to communicate with the business server!
[2014-03-05 15:00:52(380)]        ---------------------Init Service--------------------------
[2014-03-05 15:00:52(457)]        Current File Version[4, 9, 0, 0],Build time:2014-01-01 11:41:52
[2014-03-05 15:00:52(529)]        Start Server At Demo Mode!
[2014-03-05 15:00:52(586)]        Load brservernetlayer.dll success!(V4.9, Build time:Jan  1 2014 11:41:21)
[2014-03-05 15:00:52(587)]        Start TCP Server Successed(port=8906)!
[2014-03-05 15:00:52(662)]        Start UDP Server Successed(port=8907)!
[2014-03-05 15:00:52(692)]        AnyChat IPC Filter Plus Init, Build Time:Jan  1 2014 11:41:32
[2014-03-05 15:00:52(692)]        Load SDK Filter Plus:IPCFilterPlus.dll Success, ver:SDK Filter Plus (IPC), for Windows V4.9
[2014-03-05 15:01:02(715)]        Successful communicate with the business server!
[2014-03-05 15:15:56(622)]        Fails to communicate with the business server!
[2014-03-05 15:21:10(846)]        Successful communicate with the business server!
[2014-03-05 15:21:48(451)]        Fails to communicate with the business server!
[2014-03-05 15:22:52(069)]        Successful communicate with the business server!
[2014-03-05 15:23:43(056)]        Fails to communicate with the business server!
[2014-03-05 15:27:54(589)]        Successful communicate with the business server!
[2014-03-05 15:30:43(789)]        Fails to communicate with the business server!
[2014-03-05 15:35:25(374)]        Successful communicate with the business server!
[2014-03-05 15:40:07(760)]        Fails to communicate with the business server!
[2014-03-05 15:41:08(799)]        Successful communicate with the business server!
[2014-03-05 15:41:13(401)]        Fails to communicate with the business server!
[2014-03-05 15:47:35(823)]        AnyChatCoreServer has exited with error code:0
[2014-03-06 08:57:10(359)]        ---------------------Init Service--------------------------
[2014-03-06 08:57:10(491)]        Current File Version[4, 9, 0, 0],Build time:2014-01-01 11:41:52
[2014-03-06 08:57:10(787)]        Start Server At Demo Mode!
[2014-03-06 08:57:12(112)]        Load brservernetlayer.dll success!(V4.9, Build time:Jan  1 2014 11:41:21)
[2014-03-06 08:57:12(113)]        Start TCP Server Successed(port=8906)!
[2014-03-06 08:57:12(470)]        Start UDP Server Successed(port=8907)!
[2014-03-06 08:57:12(522)]        AnyChat IPC Filter Plus Init, Build Time:Jan  1 2014 11:41:32
[2014-03-06 08:57:12(522)]        Load SDK Filter Plus:IPCFilterPlus.dll Success, ver:SDK Filter Plus (IPC), for Windows V4.9
[2014-03-06 08:57:30(429)]        Successful communicate with the business server!
[2014-03-06 08:58:16(955)]        Fails to communicate with the business server!
[2014-03-06 09:01:50(146)]        AnyChatCoreServer has exited with error code:0
回复 支持 反对

使用道具 举报

6

主题

32

帖子

88

积分

注册会员

Rank: 2

积分
88
 楼主| 发表于 2014-3-6 09:35:02 | 显示全部楼层
通过cmcc网络共享后,手机和电脑还是在同一个局域网内吗?

如果不通过cmcc,直接用android模拟器是能成功连接到服务器的
回复 支持 反对

使用道具 举报

5

主题

1269

帖子

3677

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
3677
发表于 2014-3-6 09:44:52 | 显示全部楼层
Lazy_Life 发表于 2014-3-6 09:35
通过cmcc网络共享后,手机和电脑还是在同一个局域网内吗?

如果不通过cmcc,直接用android模拟器是能成功 ...

那使用cmcc后应该不是同一局域网了
回复 支持 反对

使用道具 举报

6

主题

32

帖子

88

积分

注册会员

Rank: 2

积分
88
 楼主| 发表于 2014-3-6 09:53:47 | 显示全部楼层
能不能把AnyChatServerSDK.ini中的ServerIpAddr=127.0.0.1的ip地址改成cmcc中的ip地址,这样手机可以通过其他网络访问服务器?
回复 支持 反对

使用道具 举报

6

主题

32

帖子

88

积分

注册会员

Rank: 2

积分
88
 楼主| 发表于 2014-3-6 10:28:17 | 显示全部楼层
怎么没人回答
回复 支持 反对

使用道具 举报

5

主题

1269

帖子

3677

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
3677
发表于 2014-3-6 10:30:30 | 显示全部楼层
Lazy_Life 发表于 2014-3-6 09:53
能不能把AnyChatServerSDK.ini中的ServerIpAddr=127.0.0.1的ip地址改成cmcc中的ip地址,这样手机可以通过其 ...
AnyChatServerSDK.ini中的ServerIpAddr=127.0.0.1

这个是业务服务器配置核心服务器地址,没有启动业务服务器的话,客户端也能登录的,你的问题应该不是发生在这里。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|AnyChat ( 粤ICP备13022410号-1 )  

GMT+8, 2024-3-30 03:57 , Processed in 0.121002 second(s), 22 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表