I believe you have done Android development or Android Automation test development is inseparable from the ADB this Android Debug Bridge tool, the tool has a very important function is port forwarding. For example, you set up a service on the target Android machine to handle getting the current interface elements, listening to the device on the local network port 5555, then on the PC client you can execute "adb forward tcp:5555 tcp:5555" To send the data sent to the local PC 5555 port directly to the target Android machine service listening port, very convenient. (The main concern here is the case of PC-side and Android-side connections over TCP via the ADB connect IP command).
But the problem comes, generally your target Android machine above the service to implement the monitoring function will be sent to the PC based on the command to do different processing, then we often need to debug we send to these commands receive processing and so on is OK, such as the client sent a shutdown command come over, So is your server side able to parse and handle correctly? Even when our application has a bug, we need to quickly find a way to send a command to check whether it is a client or a service problem, this time if there is a tool to enable us to achieve this quickly perfect.
The solution came, today, wandering abroad it site found an open Source tool packet Sender, the tool allows us to develop a TCP or even UDP port to send the corresponding command to the IP address set, but also support the receiving server sent back the response, etc. Let's make it easy to analyze.
The tool supports a variety of platforms, such as windows,linux,mac,android, or even the command line. Through the following people will have a basic sense of understanding:
Windows platform:
Ubuntu Platform:
Mac Platform:
Android Platform:
Command line:
The use of the tool is very intuitive and simple, so here is not to bother to disturb the quiet of the people's ears. For more information, please visit the official website: http://packetsender.com/
Here hope to bring you this tool can let everybody do development time more handy, so-called 工欲善其事, its prerequisite!
Work/Translator |
Knowledge sharing public Number |
CSDN |
Heaven Zhuhai Branch Rudder |
Techgogogo |
Http://blog.csdn.net/zhubaitian |
Android adb port forwarding Debug Assistant packet Sender