Recently started to move to mobile development , So for a front end of mobile development , Using a variety of real machine to carry out their own website or system interface targeted debugging is particularly important .

therefore , Will often turn on a wifi For cell phones to connect , Form a small Lan , And then through the LAN ip Address ( Inquire about ip Address ,cmd——》ipconfig),

adopt ip Address for project access in your local server . I thought this kind of small case You can do it in minutes , But , But , But it happened that there was no harm in visiting .

As shown in the figure below :

Seeing this, I burst into tears , I can't access the local server directly . There are two solutions to this situation : Scheme 1 : Violent settlement ( It's not smashing the computer, of course , Drop your cell phone ).

The main reason for this problem is that your computer's firewall will change some port numbers to htpp Our network access protocol has been blocked ( General computer operating system is not shielded by default 80,8080 Some common ports are ),

So you can turn off the firewall of your computer . Then you can visit it perfectly . Set the path to ( It's convenient for rookies to use ): Control panel \ All control panel items \ Windows A firewall \ Custom Settings .

Let's talk about the second plan : It's not friendly to this kind of violence . So , We can put... Directly in the firewall 80 and 8080 The port can be set as unshielded .

The specific operation is as follows , First go to windows Firewall panel , I'm gonna go to advanced

Enter the advanced settings interface , Create new rules in inbound rules and outbound rules respectively , Select port , Click next , Then enter... Directly in the corresponding input box 80, Then click next by default , complete .

Same settings 8080 Such a rule . After the whole setup , The mobile phone can be connected through LAN ip Access to the address .

from :https://blog.csdn.net/fly_home_ysc/article/details/49912621

turn : How to use mobile phone to access local computer localhost Web pages or servers , To debug web More articles about the project

  1. Mobile access to local computer localhost Webpage

    The project requires mobile phone access to the local web page of the computer , So you can debug the project , Understand the code faster a key Make sure your phone and computer are on the same LAN You can turn on the hotspot computer connection through the mobile phone or turn on the portable hotspot mobile phone connection through the computer Make sure your computer's firewall is off open apa ...

  2. How to use your mobile phone to access html file

    How to use your mobile phone to access html file Mengzhe  |  Browse 3876 Time Recommended on 2016-03-26 08:08:58   The best answer   1, You have to build a server , use Apache perhaps IIS.2, hold HTML The documents are in the service ...

  3. Mobile access to computers wampServer Local environment page

    1.   The computer needs to be installed wamp, I used it here 2.0 edition , Download address    http://pan.baidu.com/s/1jG31hbS   2. Computers need to have a wifi, I am using 360wifi   3. start-up ...

  4. Mobile access to the computer Wampserver2.4-x64 service

    I am using Wampserver2.4-x64 1.  Make sure your phone and computer are connected to the same LAN . 2. Window + R, Then input  ipconfig, And get ip Address , Long like this : 192.168.XX. ...

  5. Mobile phones access the tomcat application

    Mobile phones access the tomcat application . Operation steps : The first one is : In the case of wireless routing . 1. Local area communication is recommended . The operation is as follows : The computer , Mobile phones are automatically connected to the wireless router ( Wireless routing doesn't have to be networked ). 2. It's used to start the computer tomcat ...

  6. How to use a domain name to access your own Windows The server (Java web project )

    How to use a domain name to access your own Windows The server (Java web project ) Write it at the front I got a student server in alicloud some time ago , I just want to build a website and have a try , When I look up the relevant information on the Internet, I find that most of them are based on the server Linux ...

  7. How to access local computer files on mobile browser , In LAN , build by oneself WiFi It's fine too

    First , Computers need to have Mysql+Apache+PHP Environmental Science , I use... Directly Wampsever, After turning on the environment, the mobile phone and the computer should be in the same LAN , And then on the computer win+R, Input cmd, Input again ipconfig, You can watch the electricity on this one ...

  8. VUE-CLI Project the same LAN mobile phone through IP Visit computer local projects

    0. find config Under folder index.js file , modify host The content is hots:'0.0.0.0', At this point, rerun the project , Other devices can pass through ip Visit 1. First, make sure that the computer firewall or anti-virus software is turned off , Because most ...

  9. vue The operation of : Using a mobile phone to access a computer page is as follows :

    Install well node.js and npm after , Configure the routing , And you can access the page in the computer , Just modify my project :my-project Below config--->index.js---> Inside host ...

Random recommendation

  1. ASP.NET Core Development - How to configure Kestrel website Urls

    ASP.NET Core How to configure Kestrel Urls Well , You may all know how to use it UseUrls() Method to configure . Today, I'll give you a comprehensive introduction ASP.NET Core To configure Urls, Configure in many ways Urls. ...

  2. Windows phone 8 Learning notes (1) Touch input ( turn )

    Windows phone 8 Application With general Pc The biggest difference between applications in input mode is :Windows phone 8 Mainly rely on touch operation . Therefore, a new touch operation mode is introduced in the input mode , We need to redefine the relevant things ...

  3. API Basic development learning website

    http://www.cnblogs.com/shanyou/category/307401.html http://www.cnblogs.com/beginor/archive/2012/03/1 ...

  4. Eclipse Each row 80 Character limit prompt line

    Sometimes I hope eclipse and C++ There's an alignment line for editors and things like that open Eclipse, Windows -> Prefereces -> General -> Editors -> Te ...

  5. Self made single chip microcomputer 11 …… A / D conversion IC ADC0809

    We focus on actual production , I won't say anything too wordy , Just talk about the most refined knowledge about manufacturing . ADC0809 It is a kind of conversion that can convert the analog voltage signal quantity we want to measure into digital quantity so that it can be stored or displayed IC. Here is its pin diagram and logic diagram : ...

  6. install MySQL and Navicat, And with MyEclipse Connect

    1. Download and install MySQL 1) To http://dev.mysql.com/downloads/ download MySQL Community Edition Server, And for JDBC Of Connector. All the way to the default installation , It's important to remember M ...

  7. CloudEra Email Search

    http://blog.cloudera.com/blog/2013/09/email-indexing-using-cloudera-search/ http://blog.cloudera.com ...

  8. hdu_5881_Tea(xjb guess )

    Topic link :hdu_5881_Tea The question : There's a pot of water , The volume is in  L  and  R  Between , There are two cups , You have to pour the water into two cups , Make the cup almost the same volume of water ( The difference in volume is less than or equal to 1), And the volume of water left in the pot is not enough ...

  9. Statistical learning method : Kernel function (Kernel function)

    author : guangxi . Time :2017-04-26  12:17:42 link :http://www.cnblogs.com/xingshansi/p/6767980.html Preface The perceptron we analyzed earlier . Principal component analysis ( ...

  10. How to be in Maven Download the historical version from the official website

    How to be in Maven Download the historical version from the official website Historical versions are usually published at intervals , I can't find , The official website will display the latest version in time . Not much to say , Go straight into . https://archive.apache.org/dist/maven/bin ...