I have two questions concerning the VpnService.Builder class.
Suppose I know an App communicate with its server www.somedomain.com
, I know the server's IP address is 210.32.204.165
.
About the addAddress(String address, int prefixLength) function. In documentation, it says this function "add a network address to the VPN interface", what does that mean? Does it mean the traffic goes to that address (server IP address of an App) will go through VPN or traffic from this address (device IP?) will go through VPN?
There is a function addAllowedApplication(String packageName) which specify which app's traffic go through the VPN tunnel. Is there a way or a function to force all traffic send to server
www.somedomain.com
go through VPN tunnel?