You can first open the command line input: ipconfig
Locate the IP address of the native configuration here is: 192.168.97.122
or Open fiddler.
Click the small triangle symbol in the slice: Place your mouse in the online location, or you can see the IP address
Fiddler default listener 8888 Port, this port can be configured on its own (generally do not need to modify the port number, unless the port conflicts with other applications, such as 8888 port is occupied)
You can configure the ports manually in the following settings:
After locating the IP and port number
The agent is OK before your network requests the code logic to execute.
For example:
System.setproperty ("Http.proxyhost", "192.168.97.122"); System.setproperty ("Https.proxyhost", "192.168.97.122"); System.setproperty ("Http.proxyport", "8888"); System.setproperty ("Https.proxyport", "8888");
Note: The IP and port number should be replaced by the configuration on your machine.
The request filtering option in Fiddler also needs to be changed:
The default fiddler only crawls requests for web browsers.
With all the configuration done, the network request that executes the code in idea can be captured by fiddler, which makes it easy to analyze
Fiddler fetching Web network requests executed in IntelliJ idea