PHP-Minecraft-Rcon icon indicating copy to clipboard operation
PHP-Minecraft-Rcon copied to clipboard

rcon php is not work

Open CmoIKOnE opened this issue 4 years ago • 11 comments

require_once "rcon.php";

$host = $host_ST;
$port = $port_ST;
$password = $password_ST;
$timeout = $timeout_ST;

use Thedudeguy\Rcon;

$rcon = new Rcon($host, $port, $password, $timeout); error_reporting(E_ALL);

if($rcon->connect()) echo "+";
    else echo "-";

Help, please, tried the old solution to this error.

CmoIKOnE avatar Sep 20 '20 16:09 CmoIKOnE

Could you readd your comment with the "code" github comment? Its the < > button.

Also, what does the code really look like with your ip / rcon port? Whats your minecraft launch paramenters?

SomKen avatar Sep 20 '20 17:09 SomKen

Не могли бы вы прочитать свой комментарий с комментарием github "code"? Это кнопка <>.

Кроме того, как на самом деле выглядит код с вашим портом ip / rcon? Какие у вас параметры запуска Minecraft?

paramenter - java -Dlauncher.noJAnsi=true -Xms6G -Xmx8G -Xincgc -cp ServerWrapper.jar:server.jar pro.gravit.launcher.server.ServerWrapper

I entered all data as with server.properties

CmoIKOnE avatar Sep 21 '20 08:09 CmoIKOnE

image

CmoIKOnE avatar Sep 21 '20 08:09 CmoIKOnE

Is there any error message? Does it just time out? What is not working?

ricardoboss avatar Sep 27 '20 15:09 ricardoboss

message is not visible at all, it's just that the rkon can't work ... But before that it worked, when the rkon was inserted, everything worked clearly, and then when it was for technical work. After him and rkon broke

CmoIKOnE avatar Sep 27 '20 15:09 CmoIKOnE

Linux or windows?

Run netstat -peanut | grep "LISTEN" on linux as root and make sure Java is listening on port 25566

SomKen avatar Sep 27 '20 21:09 SomKen

If there is no message visible at all (your code would output either '+' or '-'), there might be something wrong with your PHP server. Please verify

ricardoboss avatar Sep 27 '20 21:09 ricardoboss

Если сообщение вообще не отображается (ваш код выводит либо «+», либо «-»), возможно, что-то не так с вашим PHP-сервером. Пожалуйста, подтвердите

if about this, then displayed -

CmoIKOnE avatar Sep 27 '20 22:09 CmoIKOnE

Linux или windows?

Запустите netstat -peanut | grep "LISTEN"Linux как root и убедитесь, что Java прослушивает порт 25566

написал, все таки не работает.

CmoIKOnE avatar Sep 27 '20 22:09 CmoIKOnE

I'm writing error_reporting (E_ALL & ~ E_NOTICE & ~ E_DEPRECATED & ~ E_STRICT); and no nichrome, everything is in order, probably.

CmoIKOnE avatar Sep 27 '20 22:09 CmoIKOnE

написал, все таки не работает.

You need to provide the output... That command doesn't fix anything.

SomKen avatar Oct 25 '20 18:10 SomKen