Proxy information when AirPort is OFF

Is there any way to get proxy server address and port when AirPort is turned off?

If i try to use

do shell script “scutil --proxy”

when AirPort is off, it gives error.