Page 1 of 5

autmated login

Posted: Mon Oct 08, 2012 8:45 pm
by antmar904
hi kent,

i am trying to us your automate login (session key 3.php0 but i keep getting a (Connection failed Click Back Button to retry.)

Re: autmated login

Posted: Mon Oct 08, 2012 8:46 pm
by antmar904
correction on my spelling, i am using (sessionkey3.php)

Re: autmated login

Posted: Mon Oct 08, 2012 10:21 pm
by Kent Briggs
Make sure you have the right URL and port set in the API.php file for your site. Otherwise, it could be your PHP host is blocking non-standard outbound ports. For example, if you are using the default 8087 file port, they might be blocking you trying to connect to anything other than the standard HTTP port (80). Check with them to make sure.

Re: autmated login

Posted: Tue Oct 09, 2012 7:17 am
by antmar904
can i use another port rather than 8087?

if so what would the ideal port be?

Re: autmated login

Posted: Tue Oct 09, 2012 9:12 am
by Kent Briggs
antmar904 wrote:can i use another port rather than 8087?
if so what would the ideal port be?
You can use any port from 1 to 65535. HTTP is port 80 so if you're not also running a web server you can use it. Or get your PHP host to open the port you want to use in their outbound firewall.

Re: autmated login

Posted: Tue Oct 09, 2012 10:13 am
by antmar904
is this also why none of the api's are working?

Re: autmated login

Posted: Tue Oct 09, 2012 10:26 am
by Kent Briggs
antmar904 wrote:is this also why none of the api's are working?
Could be. It's the curl_exec() function in API.php that makes the call to your poker server. If that fails because it's being blocked, you'll see the Connection Failed message. You can confirm that it's not your poker server firewall by using your browser to make a simple API call. Something like:

http://123.456.789.123:8087/api?Command ... PIPassword

Substitute in your actual poker server address and api password. If you get a Result=Ok back then the problem isn't with the poker server.

Re: autmated login

Posted: Tue Oct 09, 2012 11:32 am
by antmar904
thank you here are the resulst:

Result=Ok
Logins=0
FilledSeats=0
OccupiedTables=0
UpSeconds=14467
UpTime=0 days 4 hrs 1 min

so the issue is with the website hosting side, they are blocking port 8087?

Re: autmated login

Posted: Tue Oct 09, 2012 12:04 pm
by Kent Briggs
antmar904 wrote:so the issue is with the website hosting side, they are blocking port 8087?
Looks like it, assuming you have the correct $url value set in your API.php file. Contact your ISP and see if they will open that port in your PHP configuration. Make it clear to them that it's an outbound port, not inbound. You are trying to pull data in from an external server. Otherwise, change your file port to 80, which is probably not blocked.

Re: autmated login

Posted: Wed Oct 10, 2012 7:51 pm
by antmar904
ok so i tried changing the port to port 80 in the api.php, port forwarding and on the server side AND using sessionkey.php then sessionkey3.php and they both came back with the connection failed but when i us the login.htm is works fine.