Jump to content

get server IP


madis

Recommended Posts

Posted

Well... if there's no built-in function to do it, (I don't think there is) maybe you can callRemote() an external PHP script which just returns your IP. Would be easy to make. But why do you need this?

Posted

Thanks, robhol.

It isn't mandatory or anything. I just want a server IP to show on scoreboard (actually making a Battlefield Vietnam clone scoreboard for bfv mod, if I'll do it someday).

Posted

As robhol says, callRemote to a website is your best bet - there's no real way for a computer behind NAT to know it's external IP.

Posted

But could client know the IP last connected to? As there is a list in MTA/coreconfig.xml . I know/think a resource can't access it, but maybe as a feature request of MTA?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...