The value returned by this method is the proxy port set when the object was created.
int value = proxySettings.getPort();