Post

Replies

Boosts

Views

Activity

Local network communication on a test target
I'm creating a proof-of-concept for test targets that would require the test application to communicate with devices in the local network using a local IP address and a port. Note that the connection it not on the tested application, but rather on the test target that includes the test cases and imports the tested application, or launches it if running UI tests. I've noticed that it seems that ATS is disabled by default on test targets, since I can make GET requests to unencrypted endpoints using the http protocol, however my assumption is that communicating with devices in the local network seems to be blocked. Trying to run the same requests on a regular iOS app target launches the alert asking for permission, but the test target never does that. Is my assumption correct that you can't communicate with local devices on test targets? If that's true, is there a way to get around that limitation without opening a TCP tunnel that sends the traffic to a remote host?
1
0
748
Apr ’23