StresStimulus recorder acts as a proxy to capture HTTP/S requests. It registers itself as a system proxy, so all client applications that use system proxy settings (like browsers) will forward their requests to StresStimulus for recording. However, some client applications and native mobile apps don't use system proxy settings and don't allow manual proxy settings. If you wish to record HTTP/S traffic from those applications, then you must use No-proxy recording.
Info: No-Proxy Recording can also be referred to as tunnel mode recording.
No-proxy recording configuration
Click the Other Options... button in the Recording Source window to bring up additional recording options. Then select the Recording Mode mode options and click the No-proxy recording mode radio button to enable no-proxy recording.
In the no-proxy recording, StresStimulus will act as the target server (local host). The client application will forward the requests directly to StresStimulus, and StresStimulus will send them to the actual target server (remote host).
The first step is to add one or more endpoints that the client application will use to communicate with StresStimulus. Click the + button to bring up the endpoint creator.
Enter the IP Address and listening port.
The default is the first IP Address of the StresStimulus machine. If the client is on the same machine as StresStimulus, then the IP Address can be 127.0.0.1.
StresStimulus must listen on the same ports as the remote host. For example:
- If your application sends requests to http://www.myhost.com:2222/ , then enter port 2222
If StresStimulus machine has a firewall, then make sure the inbound port number is open to local network traffic.
Since StresStimulus will act as a Webserver rather than a proxy, it can't determine the website host name to create the proper certificate. If your application requires HTTPS recording, provide your host in the textbox.
If your application has subdomains, then add *. to the front of the host name.
For example *.mywebsite.com
Each endpoint only allows for a single domain. If your application sends requests to multiple domains, you need to create a separate endpoint for each domain.
Each endpoint must have a unique combination of IP Address and Port. If you need multiple IP addresses, then you can add more to your network card, as described here.
StresStimulus has a built-in DNS server that will route all traffic to itself. To enable no-proxy mode, the DNS settings must be changed on the target device.
Recording from a remote machine (such as a mobile device)
The only thing that must be done is to change the DNS server to StresStimulus. The DNS settings are usually a property of the Network card. Here are some examples:
- Settings > Wi-Fi > Select your network > Configure DNS > Manual
- Under DNS Servers, set the DNS Server address to the StresStimulus IP Address as described above.
- Settings > Connections > Wi-Fi > Press and Hold your network > Manage Network Settings > Show Advanced Options > IP Settings > Static
- Fill out your phone's IP Address, Gateway, and Network prefix
- Set DNS 1 to the StresStimulus IP Address as described above.
These settings must be changed after the StresStimulus recorder is started.
After you are done with recording and click Stop in the StresStimulus recorder, you must revert your DNS settings to previous settings. Otherwise, your device may stop working.
Recording from a local machine
When recording from the same machine as StresStimulus, StresStimulus will automatically try to change the DNS settings to localhost (127.0.0.1) so that StresStimulus built-in DNS server can be used.
If, for some reason, this will fail (for example, due to security), then Hosts file can be used instead.
- Click the Local DNS Settings button to bring up the Local DNS Settings dialog.
- Select the Use Hosts file option and click OK.
- Open the hosts file located %WinDir%\system32\drivers\etc\hosts
- For every host, the application sends requests to, direct to 127.0.0.1 by adding a line entry 127.0.0.1 [host]
- 127.0.0.1 www.myhost.com
- 127.0.0.1 www.myhost1.com
- 127.0.0.1 www.myhost2.com
- When you are finished recording, delete the added line entries in the host's file.
If StresStimulus automatically set DNS settings, then after recording is complete, StresStimulus will revert DNS settings to its original state.
StresStimulus will use the system provided DNS settings to determine how to forward the request to the actual server. If it can't identify the DNS server or you want to specify your own, the check the Enter Manually radio and provide the IP of the DNS server.