启动服务端成功截图:
连接成功截图:
测试服务端是否启动成功:
在Web输入:http://localhost:11009/ 按回车 (查看cmd启动的服务端 是否多出如下显示)
服务端启动成功。PC unity3d客户端 连接也成功。但在手机端连接不成功 一直显示连接服务器有误 请检查网络
--------- beginning of /dev/log/system
--------- beginning of /dev/log/main
D/Unity (32743): GL_EXT_debug_marker GL_AMD_compressed_ATC_texture GL_AMD_per
ormance_monitor GL_AMD_program_binary_Z400 GL_EXT_robustness GL_EXT_texture_for
at_BGRA8888 GL_EXT_texture_type_2_10_10_10_REV GL_NV_fence GL_OES_compressed_ET
1_RGB8_texture GL_OES_depth_texture GL_OES_depth24 GL_OES_EGL_image GL_OES_EGL_
mage_external GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_fragmen
_precision_high GL_OES_get_program_binary GL_OES_packed_depth_stencil GL_OES_rg
8_rgba8 GL_OES_standard_derivatives GL_OES_texture_3D GL_OES_texture_float GL_O
S_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OE
_vertex_half_float GL_OES_vertex_type_10_10_10_2 GL_OES_vertex_array_object GL_
COM_alpha_test GL_QCOM_binning_control GL_QCOM_driver_control GL_QCOM_perfmon_g
obal_mode GL_QCOM_extended_get GL_QCOM_extended_get2 GL_QCOM_tiled_rendering GL
QCOM_writeonly_rendering GL_AMD_compressed_3DC_texture
I/Unity (32743): FormatException: An invalid IP address was specified.
I/Unity (32743): at System.Net.IPAddress.Parse (System.String ipString) [0x
0000] in <filename unknown>:0
I/Unity (32743): at XTcpClient.Connect (System.String ip, Int32 port) [0x00
00] in <filename unknown>:0
I/Unity (32743): at NetMgr.Connect (System.Action callback) [0x00000] in <f
lename unknown>:0
I/Unity (32743): at Globals.Connect (System.Action callback) [0x00000] in <
ilename unknown>:0
I/Unity (32743): at DengluView.onClickLogin () [0x00000] in <filename unkno
n>:0
I/Unity (32743): UnityEngine.GameObject:SendMessage(String, Object, SendMessa
eOptions)
I/Unity (32743): UIButtonMessage:Send()
I/Unity (32743): UIButtonMessage:OnClick()
I/Unity (32743): UnityEngine.GameObject:SendMessage(String, Object, SendMessa
eOptions)
I/Unity (32743): UICamera:Notify(GameObject, String, Object)
I/Unity (32743): UICamera:ProcessTouch(Boolean, Boolean)
I/Unity (32743): UICamera:ProcessTouches()
I/Unity (32743): UICamera:Update()
I/Unity (32743):
I/Unity (32743): (Filename: Line: -1)
I/Unity (32743):
D/Unity ( 939): GL_EXT_debug_marker GL_AMD_compressed_ATC_texture GL_AMD_per
ormance_monitor GL_AMD_program_binary_Z400 GL_EXT_robustness GL_EXT_texture_for
at_BGRA8888 GL_EXT_texture_type_2_10_10_10_REV GL_NV_fence GL_OES_compressed_ET
1_RGB8_texture GL_OES_depth_texture GL_OES_depth24 GL_OES_EGL_image GL_OES_EGL_
mage_external GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_fragmen
_precision_high GL_OES_get_program_binary GL_OES_packed_depth_stencil GL_OES_rg
8_rgba8 GL_OES_standard_derivatives GL_OES_texture_3D GL_OES_texture_float GL_O
S_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OE
_vertex_half_float GL_OES_vertex_type_10_10_10_2 GL_OES_vertex_array_object GL_
COM_alpha_test GL_QCOM_binning_control GL_QCOM_driver_control GL_QCOM_perfmon_g
obal_mode GL_QCOM_extended_get GL_QCOM_extended_get2 GL_QCOM_tiled_rendering GL
QCOM_writeonly_rendering GL_AMD_compressed_3DC_texture
W/Unity ( 939): ::OnConnected
W/Unity ( 939):
W/Unity ( 939): (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDe
ug.cpp Line: 53)
W/Unity ( 939):
E/Unity ( 939): 连接服务器有误 请检查网络
E/Unity ( 939):
E/Unity ( 939): (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDe
ug.cpp Line: 53)
E/Unity ( 939):