为什么我从我的手机访问到我的计算机网络不工作? [英] Why my access from my mobile to my computer network doesn't work?

查看:449
本文介绍了为什么我从我的手机访问到我的计算机网络不工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,这是,昨天,我可以从我的手机访问到我的计算机网络,但今天它不工作。为什么会是?



我已准备好:


  1. 我的本地服务器与XAMPP(我已经开始 Apache MySQL )。


  2. 我已经通过WIFI连接到同一个网络。

  3. 我已经通过USB连接到计算机。 c $ c> CMD ,复制我的计算机的 IP ,并把它放在我的手机的浏览器,但它不工作。

  4. 我尝试使用 10.0.2.2 ,但它也无效。



    1. 为什么会这样?昨天它的工作完美把我的手机浏览器的网址,今天它不工作。我昨天没有改变。
      我忘了什么吗?如何检查所有的工作是否正确?



      注意:我看到很多问题,使同一个问题,但我不能解决我的问题。 / p>

      提前感谢!



      编辑:我在日志控制台中看到了问题。日志在这里:

        06-04 16:49:21.527 17600-17600 / com.example.user.project V / PhoneWindow:DecorView setVisiblity:visibility = 0,Parent = ViewRoot {420a1478 com.example.user.project / com.example.user.project.MainActivity,ident = 0},this = com.android.internal.policy.impl.PhoneWindow $ DecorView {4205a608 VE .... R ... ID 0,0-0,0} 
      06-04 16:49:21.527 17600-17600 / com.example.user.project D / ActivityThread :ACT-LAUNCH_ACTIVITY处理:0 / ActivityRecord {4204b3c0 token=android.os.BinderProxy@4204aa68 {com.example.user.project / com.example.user.project.MainActivity}}
      06-04 16:49 :21.590 17600-17600 / com.example.user.project E /:appName = com.example.user.project,acAppName = / system / bin / surfaceflinger
      06-04 16:49:21.590 17600-17600 / com.example.user.project E /:0
      06-04 16:49:21.590 17600-17600 / com.example.user.project E /:appName = com.example.user.project,acAppName = / system / bin / surfaceflinger
      06-04 16:49:21.590 17600-17600 / com.example.user.project E /:0
      06-04 16:49:21.592 17600-17600 / com。 example.user.project D / GraphicBuffer:create handle(0x614af178)(w:480,h:800,f:1)
      06-04 16:49:21.593 17600-17600 / com.example.user.project I / MaliEGL:[Mali] window_type = 1,is_framebuffer = 0,errnum = 0


      解决方案

      这是一个解决方案,我发现,使其工作时,这个问题发生。它不是技术(或我不这么认为),但它适用于我,它是以下:


      1. 我连接我的移动设备

      2. 我运行我的服务器(在我的case XAMPP)。

      3. 我通过WIFI从我的移动设备连接到同一网络。

      4. 我去了 CMD ,复制我的计算机的 IP ,并把它放在我的手机的浏览器,但它不工作。

      如果我执行上面的步骤,它不工作。那么,我要做什么来解决这个问题?



      当我配置了所有的步骤,我把上面和这个错误ocurrs,我必须禁用WIFI我的移动设备。当我再次启用它,它工作完美!



      我不知道为什么会发生,我知道这不是一个非常技术的答案,但我标记为接受,因为我认为它可以帮助另一个人。



      如果您有其他解决方案,或者您知道为什么我的解决方案是正确的,请让我知道。


      I have a problem and it is that, yesterday, I could access from my mobile phone to my computer network but today it doesn't work. Why it could be?

      What I have ready:

      1. I have running my local server with XAMPP (I have started Apache and MySQL).
      2. I'm connect via WIFI to the same network.
      3. My mobile phone it's connect to the computer via USB.
      4. I went to CMD, copy the IP of my computer and put it on the browser of my mobile phone, but it doesn't work.
      5. I tried with the url 10.0.2.2 but it also doesn't work.

      Why it could be? Yesterday it worked perfectly putting my url in my mobile phone browser and today it doesn't work. I didn't make any change from yesterday. Had I forgot something? How can I check that all it's working correct?

      Note: I saw a lot of questions that makes the same question but I couldn't solve my problem with them.

      Thanks in advance!

      EDIT: I saw a problem in my log console. The log it's here:

      06-04 16:49:21.527  17600-17600/com.example.user.project V/PhoneWindow﹕ DecorView setVisiblity: visibility = 0 ,Parent =ViewRoot{420a1478 com.example.user.project/com.example.user.project.MainActivity,ident = 0}, this =com.android.internal.policy.impl.PhoneWindow$DecorView{4205a608 V.E..... R.....ID 0,0-0,0}
      06-04 16:49:21.527  17600-17600/com.example.user.project D/ActivityThread﹕ ACT-LAUNCH_ACTIVITY handled : 0 / ActivityRecord{4204b3c0 token=android.os.BinderProxy@4204aa68 {com.example.user.project/com.example.user.project.MainActivity}}
      06-04 16:49:21.590  17600-17600/com.example.user.project E/﹕ appName=com.example.user.project, acAppName=/system/bin/surfaceflinger
      06-04 16:49:21.590  17600-17600/com.example.user.project E/﹕ 0
      06-04 16:49:21.590  17600-17600/com.example.user.project E/﹕ appName=com.example.user.project, acAppName=/system/bin/surfaceflinger
      06-04 16:49:21.590  17600-17600/com.example.user.project E/﹕ 0
      06-04 16:49:21.592  17600-17600/com.example.user.project D/GraphicBuffer﹕ create handle(0x614af178) (w:480, h:800, f:1)
      06-04 16:49:21.593  17600-17600/com.example.user.project I/MaliEGL﹕ [Mali]window_type=1, is_framebuffer=0, errnum = 0
      

      解决方案

      This is a solution that I found to make it works when this trouble happens. It is not technical (or I don't think so) but it works for me and it's the following:

      1. I connect my mobile device to the computer via USB.
      2. I run my server (in my case XAMPP).
      3. I'm connect via WIFI to the same network from my mobile device as from my computer.
      4. I went to CMD, copy the IP of my computer and put it on the browser of my mobile phone, but it doesn't work.

      If I do the steps that I put above it doesn't work. So, what I have to do to solve this problem?

      When I have configurated all the steps that I put above and this error ocurrs, I have to disable the WIFI from my mobile device. When I enable it again it works perfectly!

      I don't have any idea about why it happens, and I know that it's not a very technical answer but I mark as accept because I think it can help another people.

      If some of you have another solution to this problem or if you know why it is correct with my solution please let me know.

      这篇关于为什么我从我的手机访问到我的计算机网络不工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆