Page 1 of 1

API help needed

PostPosted: Fri Dec 18, 2015 12:57 pm
by ianMac
Hi,
I have Poker Mavens Gold. I have set this up on m y local pc and all works fine - API etc (using the examples provided by Kent.)
When I transfer to my VPS everything works except I cannot access the api via a script. I can access the api via the command line and change balances etc and can connect to the main login page from a website script.
I have checked with my hosting company and the correct ports are open.

Any help is welcome.

Thanks,

ianMac

Re: API help needed

PostPosted: Fri Dec 18, 2015 1:45 pm
by Kent Briggs
ianMac wrote:I have checked with my hosting company and the correct ports are open.


Are you using PHP with Curl and is that hosted on a different system than your poker server? Are you using 8087 or other non-80 number as your file port? Most likely, your PHP hosting company is allowing outbound traffic only to port 80 on external systems and is blocking everything else. So check with them to see if that's the case. Make it clear that you are not asking for them to open inbound ports on their system, just an outbound port for your external VPS.

Re: API help needed

PostPosted: Fri Dec 18, 2015 4:43 pm
by ianMac
Thanks. That helped. Curl is installed so have now narrowed the problem down to the port being closed. So far they say they won't open it. I'll send an email to their tech dept and take it from there. Otherwise I'll be looking for a new provider!
Thanks,
ianMac

Re: API help needed

PostPosted: Fri Dec 18, 2015 5:25 pm
by Kent Briggs
If you're not running a web server on your VPS then you could change your file port to 80. And if you are running a web server then you just install PHP there and run your API code on the same machine as your poker server.

But yeah, providers that restrict what ports you can connect to on external systems are idiots. There's nothing magical or secure about port 80 compared to the other 65000+ ports available.