PocketMine / PocketMine-MP

Legacy PocketMine-MP repository. Head to https://github.com/pmmp for up to date software.
https://www.pocketmine.net/
GNU Lesser General Public License v3.0
1.26k stars 660 forks source link

How i can know the ip and port of my server #4300

Closed MarwanEA closed 6 years ago

MarwanEA commented 7 years ago

Issue description

Write a short description about the issue

Steps to reproduce the issue

  1. ...
  2. ...

    OS and versions

VzdutieJivota commented 7 years ago

In plugin? Ip: $_SERVER['REMOTE_ADDR']; Port: $this->getServer()->getPort(); Or ip and port to join? If you open server on PC, use local ip and standart port If you open server on VDS, use ip what you use to connect there

ClockProgramming commented 7 years ago

Google is a nice person to ask

On Oct 25, 2016 11:38 AM, "badp1g" notifications@github.com wrote:

In plugin? Ip: $_SERVER['REMOTE_ADDR']; Port: $this->getServer()->getPort();

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/PocketMine/PocketMine-MP/issues/4300#issuecomment-255927722, or mute the thread https://github.com/notifications/unsubscribe-auth/APv_xRzatnGKP7hZFyjazMBDGnjP_Ylwks5q3XmZgaJpZM4KfSFz .

DiegoGTRatty commented 7 years ago

@GlitchPlayer 10/10 you jerk. ;(

@MarwanEA You can use google to search your external IP. It should be able to tell you right away.

As for the port, if you didn't modify the setup files, it SHOULD still be the default port (19132).

Also, you should go to this link my freind: https://github.com/pmmp/PocketMine-MP