$client = new SoapClient( null, array( 'location' => "http://".$fritzboxIP.":".$fritzboxPort."/upnp/control/wlanconfig2", 'uri' => "urn:dslforum-org:service:WLANConfiguration:2", 'noroot' => True, 'login' => $login, 'password' => $password ) ); //print_r($client); $NumberOfHosts = $client->GetTotalAssociations(); //print_r($NumberOfHosts); for ($i=0;$i<$NumberOfHosts;$i++) { $Host = $client->GetGenericAssociatedDeviceInfo(new SoapParam($i,'NewAssociatedDeviceIndex')); //print_r($Host); $Hosts[] = $Host; }