SA-MP Forums Archive
PHP Api - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: PHP Api (/showthread.php?tid=620484)



PHP Api - Naruto_Emilio - 30.10.2016

Hello, I am trying to use sockets to do some stuff in my web, but it doesnt allow me to connect to the server, I guess the server is blocking my connection but the issue is that I dont know which port I should open to allow the connections, can you please help me on this?


Re: PHP Api - Jayse - 30.10.2016

port 80 for HTTP and 443 for HTTPS


Re: PHP Api - Naruto_Emilio - 30.10.2016

I did that but it doesnt work, note that I have a windows server


Re: PHP Api - Spmn - 30.10.2016

What response code and data do you get from web server?


Re: PHP Api - Naruto_Emilio - 30.10.2016

Server does not respond, but the infos are right, (ip and port)


Re: PHP Api - Naruto_Emilio - 31.10.2016

bump


Re: PHP Api - Vince - 31.10.2016

A socket connection in what direction? From the SA-MP server to a webserver or the other way around?


Re: PHP Api - Pearson - 01.11.2016

Can you show we code?


Re: PHP Api - Naruto_Emilio - 02.11.2016

I got a windows server 2012 r2 server, my samp server is installed in the windows server, and my webhost is in a different host, when I try to get infos from my server and show them in my website, it keeps denieing the connection.