Proxy.NoProxy Property

Definition

A proxy setting that represents a DIRECT connection, basically telling the protocol handler not to use any proxying.

[Android.Runtime.Register("NO_PROXY")]
public static Java.Net.Proxy? NoProxy { get; }
[<Android.Runtime.Register("NO_PROXY")>]
static member NoProxy : Java.Net.Proxy

Property Value

Attributes

Remarks

A proxy setting that represents a DIRECT connection, basically telling the protocol handler not to use any proxying. Used, for instance, to create sockets bypassing any other global proxy settings (like SOCKS):

Socket s = new Socket(Proxy.NO_PROXY);

Java documentation for java.net.Proxy.NO_PROXY.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to