I'm trying to use xml rpc in remote server.
using codeigniter xml-rpc class.
the xml rpc server didn't send any data. so i tracked the library
and reached to here
- parameters
THIS->SERVER : 10.222.223.53
THIS->PORT : 80
THIS->errno :
THIS->errstr :
THIS->timeout : 5
these are the parameters and in here,
$fp = @fsockopen($this->server, $this->port,$this->errno, $this->errstring,
$this->timeout);
it returns FALSE, which means connection fail.
what should be the reason of this?
i checked 80 port is open with
this command
netstat -lntp
tcp 0 0 :::80 :::* LISTEN 6712/httpd
As discussed in comments the problem is not in the code but in lack of connectivity. A firewall in the particular case.
To more easily debug the issue there are two approaches:
@
that is suppressing warning/error output from the fsockopen
$this->errno
and $this->errstr
after the call failed