启动服务端成功截图:
连接成功截图:
测试服务端是否启动成功:
在Web输入:http://localhost:11009/ 按回车 (查看cmd启动的服务端 是否多出如下显示)
服务端启动成功。PC unity3d客户端 连接也成功。但在手机端连接不成功 一直显示连接服务器有误 请检查网络
--------- beginning of /dev/log/system
--------- beginning of /dev/log/mainD/Unity (32743): GL_EXT_debug_marker GL_AMD_compressed_ATC_texture GL_AMD_perormance_monitor GL_AMD_program_binary_Z400 GL_EXT_robustness GL_EXT_texture_forat_BGRA8888 GL_EXT_texture_type_2_10_10_10_REV GL_NV_fence GL_OES_compressed_ET1_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_rg8_rgba8 GL_OES_standard_derivatives GL_OES_texture_3D GL_OES_texture_float GL_OS_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_gobal_mode GL_QCOM_extended_get GL_QCOM_extended_get2 GL_QCOM_tiled_rendering GLQCOM_writeonly_rendering GL_AMD_compressed_3DC_textureI/Unity (32743): FormatException: An invalid IP address was specified.I/Unity (32743): at System.Net.IPAddress.Parse (System.String ipString) [0x0000] in <filename unknown>:0I/Unity (32743): at XTcpClient.Connect (System.String ip, Int32 port) [0x0000] in <filename unknown>:0I/Unity (32743): at NetMgr.Connect (System.Action callback) [0x00000] in <flename unknown>:0I/Unity (32743): at Globals.Connect (System.Action callback) [0x00000] in <ilename unknown>:0I/Unity (32743): at DengluView.onClickLogin () [0x00000] in <filename unknon>:0I/Unity (32743): UnityEngine.GameObject:SendMessage(String, Object, SendMessaeOptions)I/Unity (32743): UIButtonMessage:Send()I/Unity (32743): UIButtonMessage:OnClick()I/Unity (32743): UnityEngine.GameObject:SendMessage(String, Object, SendMessaeOptions)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_perormance_monitor GL_AMD_program_binary_Z400 GL_EXT_robustness GL_EXT_texture_forat_BGRA8888 GL_EXT_texture_type_2_10_10_10_REV GL_NV_fence GL_OES_compressed_ET1_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_rg8_rgba8 GL_OES_standard_derivatives GL_OES_texture_3D GL_OES_texture_float GL_OS_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_gobal_mode GL_QCOM_extended_get GL_QCOM_extended_get2 GL_QCOM_tiled_rendering GLQCOM_writeonly_rendering GL_AMD_compressed_3DC_textureW/Unity ( 939): ::OnConnectedW/Unity ( 939):W/Unity ( 939): (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDeug.cpp Line: 53)W/Unity ( 939):E/Unity ( 939): 连接服务器有误 请检查网络E/Unity ( 939):E/Unity ( 939): (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDeug.cpp Line: 53)E/Unity ( 939):