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

Open
MarwanEA opened this Issue Oct 24, 2016 · 3 comments

Projects

None yet

4 participants

@MarwanEA

Issue description

Write a short description about the issue

Steps to reproduce the issue

  1. ...
  2. ...

OS and versions

  • PocketMine-MP:
  • PHP:
  • OS:

Crashdump, backtrace or other files

  • ...
@badp1g
badp1g commented Oct 25, 2016 edited

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

@GlitchPlayer

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
#4300 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/APv_xRzatnGKP7hZFyjazMBDGnjP_Ylwks5q3XmZgaJpZM4KfSFz
.

@DiegoGTRatty
DiegoGTRatty commented Oct 27, 2016 edited

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment