1. Open the developer option on your phone. Find the "About Mobile Phone" option in the settings, and click "Version Number" several times to open the developer option. Find "USB debugging" in the developer options and open it.
2. Install and open the ADB tool on the computer. ADB, the abbreviation of AndroidDebugBridge, is a developer tool that can be used to communicate with Android devices and forward ports. Download and install ADB tool in official website, and open ADB tool. Connect the mobile phone to the computer. Connect the mobile phone and computer with the data cable to ensure the connection is successful.
3. Open the port forwarding function of the mobile phone. Find the "wireless and network" option in the settings of the mobile phone and enter the "developer options". Find "Network Agent" in the developer options, open it and select "Manual Configuration". Enter the IP address and port number of the computer in Host and Port respectively, and save and apply the settings.
4. Open the browser on the computer and access the IP address of the mobile phone. Enter the IP address of the mobile phone in the browser of the computer (which can be viewed in the settings of the mobile phone), and press enter to access. If the port forwarding settings are correct, you should be able to successfully access applications or websites on your mobile phone.