Adapting to the current network connection type