无法访问我托管网站上的nusoap webservice到localhost,但是在localhost上工作到localhost

I didn't know what is wrong with my server. It looks like can't access local nusoap webservice .. but working fine when my web still on localhost. When I hosted it, it can't access ws nusoap . I even disable firewall on my PC, but still it didn't work . here my code

public function index() {
$this->load->helper('url');
     $this->load->library("Nusoap_lib");

        $url = 'http://localhost:8082/ws/live.php?wsdl';

        $client = new nusoap_client($url, true);
        echo $url;
        $proxy = $client->getproxy();


        $username = 'username';
        $password = 'password';
        $result=$proxy->GetToken($username, $password);
        $token = $result;
        $var = 2011;
        $tahun = (int)$var;
        $table = 'nilai';
        $filter = "id_smt = 20141";
        //$filter = "";
        $order = "";
        $jumlah = $proxy->GetCountRecordset($token, $table, $filter);

I got error like this

An uncaught Exception was encountered

Type: Error

Message: Call to a member function GetToken() on null

Filename: /var/www/validator-feeder/application/controllers/Wsa.php

Line Number: 19

The point is my hosted website cannot access localhost

$url = 'http://localhost:8082/ws/live.php?wsdl';

but my local website can access localhost.

any idea what cause this ??