API help needed

For general discussion of the Poker Mavens software

API help needed

Postby ianMac » Fri Dec 18, 2015 12:57 pm

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
ianMac
 
Posts: 4
Joined: Sat Mar 29, 2014 2:21 am

Re: API help needed

Postby Kent Briggs » Fri Dec 18, 2015 1:45 pm

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.
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3944
Joined: Wed Mar 19, 2008 8:47 pm

Re: API help needed

Postby ianMac » Fri Dec 18, 2015 4:43 pm

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
ianMac
 
Posts: 4
Joined: Sat Mar 29, 2014 2:21 am

Re: API help needed

Postby Kent Briggs » Fri Dec 18, 2015 5:25 pm

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.
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3944
Joined: Wed Mar 19, 2008 8:47 pm


Return to General

Who is online

Users browsing this forum: No registered users and 9 guests

cron