PHRETS connection not working on live server..

716 views
Skip to first unread message

Sourabh Agrawal

unread,
Apr 30, 2013, 8:04:08 AM4/30/13
to phr...@googlegroups.com

When I used to connect phrets on my local server it works perfectly.
But when I used it to connect on Live server the connection is not established.

In debug file I got msg:-

  • About to connect() to rets.torontomls.net port 6103 (#0)
  • Trying 68.71.195.47... * Connection timed out
  • couldn't connect to host
  • Closing connection #0
Error display on file is as:
Firewall Test: google.com:80 GOOD
Firewall Test: demo.crt.realtors.org:80 GOOD
Firewall Test: demo.crt.realtors.org:6103 FAILED
Firewall Test: retsgw.flexmls.com:80 GOOD
Firewall Test: retsgw.flexmls.com:6103 FAILED
Firewall Result: All port 6103 tests failed. Likely cause: Firewall is blocking your outbound connections on port 6103.+ Connecting to http://rets.torontomls.net:6103/rets-treb3pv/server/login as D13mtr
+ Not connected:
Array ( [type] => http [code] => 0 [text] => )

//Code is as follows:-



$rets = new phRETS;

$rets->FirewallTest();

//$rets->AddHeader('Accept', "* / *");

$rets->AddHeader("RETS-Version", "RETS/1.5");

$rets->SetParam("debug_mode", true);

$rets->SetParam("disable_follow_location", true);

$rets->SetParam('use_interealty_ua_auth', true);

echo "+ Connecting to {$rets_login_url} as {$rets_username}
\n";
$connect = $rets->Connect($rets_login_url, $rets_username, $rets_password);
if ($connect) {
echo " + Connected
\n";
}
else {
echo " + Not connected:
\n";
print_r($rets->Error());
exit;
}

Please help me.. what are the possibilities may occer..

Madan

unread,
Apr 30, 2013, 8:45:58 AM4/30/13
to phr...@googlegroups.com
Your server is not allowing outgoing connections on port 6103. Please contact your server administrator and ask them to open the port.

Sourabh Agrawal

unread,
May 1, 2013, 12:55:25 AM5/1/13
to phr...@googlegroups.com
I submitted the ticket..  Let see what will happen...  :)

Madan

unread,
May 1, 2013, 12:58:03 AM5/1/13
to phr...@googlegroups.com
If you are using GoDaddy, I doubt if they will open it up. I had issues with them in the past.

Sourabh Agrawal

unread,
May 1, 2013, 1:01:02 AM5/1/13
to phr...@googlegroups.com
No its not godaddy..  its register.com...

Todd Albert

unread,
Jun 20, 2013, 3:40:19 PM6/20/13
to phr...@googlegroups.com
Is your RETS provider allowing the IP of your server to access their service? This may be the issue. They may only be allowing a certain set of IPs, and your local machine is a match but not your server.

Sourabh Agrawal

unread,
Jun 21, 2013, 12:54:32 AM6/21/13
to phr...@googlegroups.com
Oh god!!!  Finally this issue has fixed. since register.com had block the Port number which is required to access the mls data...
So to resolve this I switched to the VPS hosting of godaddy..   now this API is working fine...

Thanks to all of you for your valuable support here...


On Tuesday, April 30, 2013 5:34:08 PM UTC+5:30, Sourabh Agrawal wrote:
Reply all
Reply to author
Forward
0 new messages