get gateway from serversettings