Need Help on Sockets. - 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: Need Help on Sockets. (
/showthread.php?tid=657177)
Need Help on Sockets. -
KessMan - 02.08.2018
I changed the web-host to the site and now not work sockets. (Web host has sockets libraries installed and enabled.)
socket_connect($socket, '195.178.12.2', '7778');
195.178.12.2 = Site IP. (Do I have to cross the site's IP or Server IP?)
7778 = PORT Socket.
I do not know what to fill in to IP and port.
Thanks for reading.
Have a nice day everyone.
Sorry for my english.
Re: Need Help on Sockets. -
KessMan - 02.08.2018
Anyone?
Re: Need Help on Sockets. -
NaS - 02.08.2018
Are the SAMP Server and the web server on the same host?
If not, you probably open a listen socket on the SAMP Server and connect to it from PHP, then you need to fill in the SAMP Server's public IP and the Port of the socket.
Re: Need Help on Sockets. -
KessMan - 02.08.2018
Thanks.
SOLVED.