Is there any problem using NETransparentProxyNetworkSettings(tunnelRemoteAddress: "::1") ?

What if users don't have IPv6 enabled in TCP settings of the network adapter? Does is have any effect on NETransparentProxyNetworkSettings initialized with tunnelRemoteAddress set to IPv6? If yes, is it possible to use NETransparentProxyNetworkSettings(tunnelRemoteAddress: "localhost") and let the system figure out the address? Or is it better to just always use "127.0.0.1"?

In some cases when user doesn't use IPv6 (for one reason on another) we see NETransparentProxyNetworkSettings configuration in System Preferences -> Network to switch repeatedly and indefinitely between disconnected and connected state. Could it be caused by using "::1" as tunnelRemoteAddress?

Thanks.

Could it be caused by using "::1" as tunnelRemoteAddress?

I think that’s unlikely because…

What if users don't have IPv6 enabled in TCP settings of the network adapter?

The ::1 address is tied to the loopback interface, and that’s always enabled. Users can’t disable IPv6 on our platforms.

Or is it better to just always use "127.0.0.1"?

I don’t think that’ll help but it’s an easy change to make so how about you try it and see whether it improves things? You win either way:

  • If it does, you’ve learnt something new about the issue and potentially found a workaround.

  • If it doesn’t you’ve ruled out this as a cause.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Is there any problem using NETransparentProxyNetworkSettings(tunnelRemoteAddress: "::1") ?
 
 
Q