Jump to content

Recommended Posts

Posted
Just now, diesieben07 said:

Yes. Why? Which IP exactly?

 

The IP of the user that is currently using the mod, need it for login purposes.

Posted
Just now, diesieben07 said:

I don't see why you would need the IP for login purposes. And again: which IP? The private IP? Public? 

 

Public.

Posted

Why? Dont skip over this question like you did twice.

Mods shouldn't be phoning home or anything to need users information.

 

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted
1 minute ago, LexManos said:

Why? Dont skip over this question like you did twice.

Mods shouldn't be phoning home or anything to need users information.

 

 

As I said before, I use it for login purposes - if a user is trying to log in to a certain place from the mod without permission (wich will be defined by his public IP address) he will not get access.

 

It's a public IP address, just like server owners can get.

Posted
Just now, diesieben07 said:

If you are qualified enough to program a login process (it's quite a lot more complicated than you might think) then you know how to get the user's IP.

 
 

This is why I'm asking for help here, all I want to do is this:

 

> Click a button

>Checks IP

>If IP is identical > enter

If not > don't

 

Why are all the questions? what will I do with someone's IP...

Posted
1 minute ago, diesieben07 said:

So, now we are getting at least somewhat closer. What you described has nothing to do with a login process, you want an IP whitelist. Why? Vanilla already has IP bans.

 

It's sort of a login in a way.

The thing is I don't want to ban IPs I want to check them to see if the player has permissions to for example get "admin options" inside my mod.

I just thought it can be pretty cool

Posted
Just now, diesieben07 said:

I don't see why you want that tied to IP. It makes no sense. If user A logs in from their friend's house they will have a different IP, but they are still the same person.

Admin rights should be based on the user identity, i.e. UUID.

 

It shouldn't be open to everyone, that's the thing.

I want the use to be only for my IP or anyone else's IP that I decide to add.

What do you mean by UUID?

Posted
Just now, diesieben07 said:

Then restrict it by UUID.

 

People don't always have static IPs. If you get internet via DSL or are on a mobile network you will get a new IP at least every 24 hours.

IP ≠ person.

 

Every Mojang account / Minecraft user has a UUID. You can find yours via (for example): https://mcuuid.net/.

 

And I can access that using mc.player?

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.