Appium+python automation (4) - how to view the port number and IP occupied by the program (super detailed explanation) (extra)

Introduction

  This blog post does not seem to have much to do with classification, but it is also a product derived from the previous one, because it involves the FQ tool Lantern , even if it is to expand the horizons and knowledge of the friends who pay attention and support. And many people have read the previous article and didn't find that the reference blog can't be opened? That's because I haven't come yet, just organize and write, and try again today.

  A software may occupy multiple ports and have multiple target IPs. The following uses the FQ tool Lantern as an example to illustrate how to view ports:

1. Use third-party software to view

  If you have 360 ​​and other optimization tools installed on your computer, there may be a plug-in to check the network status as shown below:

2. Command line window view

  When viewing in the command line window, you can first view the PID of the software, and then view the port number through the PID:

  Notice that there are two PID numbers here, so which one should I use to check? If you're not sure, give it a try...

3. Summary

How to view computer housekeeper:

  From the above analysis, it can be seen that a software may occupy multiple pairs of port and IP values, so if we need to use the FQ tool to set up a proxy, which pair of IP and port should we fill in? My experience is:

  3.1 Exclude those with local broadband IP;

  3.2 Exclude those with IP 0.0.0.0;

  3.3 The remaining port numbers and IPs are not sure, so you can try them one by one, usually there are not many pairs...

  3.4 Different FQ tools may have different query methods. If you have a better query method for the blue light, you can leave a message to discuss

Finally:  I have compiled a complete set of software testing learning tutorials for you, and friends can get it for free if they need it 【保证100%免费】

life is long so add oil. Every effort will not be let down, as long as you persevere, there will be rewards in the end. Cherish your time and pursue your dreams. Don't forget the original intention, forge ahead. Your future is in your hands!

Life is short, time is precious, we cannot predict what will happen in the future, but we can grasp the present moment. Cherish every day and work hard to make yourself stronger and better. Firm belief, persistent pursuit, success will eventually belong to you!

Only by constantly challenging yourself can you constantly surpass yourself. Persist in pursuing your dreams and move forward bravely, and you will find that the process of struggle is so beautiful and worthwhile. Believe in yourself, you can do it!

Information acquisition method:
This document and video information should be the most comprehensive and complete preparation warehouse for friends who want to engage in [software testing]. This warehouse has also accompanied tens of thousands of test engineers through the most difficult journey. Hope Can help you too! All of the above can be shared, click the small card below to enter the group to receive.

Guess you like

Origin blog.csdn.net/NHB456789/article/details/131723200