Jump to content
  • 0

Get User's Real IP


Question

8 answers to this question

Recommended Posts

  • 0
Posted

quick answer is no

quick explanation is that cloudflare believes and supports that ipv6 ips should be used instead because ipv4 ip's are ending, so they allow you to use ipv4 only on paid plans

hence the reason they use dummy ip's for your visitors also another reason is that you have this conflict since l2 is not recognizing ipv6

 

  • 0
Posted (edited)
1 hour ago, Nightw0lf said:

quick answer is no

quick explanation is that cloudflare believes and supports that ipv6 ips should be used instead because ipv4 ip's are ending, so they allow you to use ipv4 only on paid plans

hence the reason they use dummy ip's for your visitors also another reason is that you have this conflict since l2 is not recognizing ipv6

 

did i say something incorrect?

Edited by BruT
  • 0
Posted (edited)
52 minutes ago, Berserkd said:

yup that's not private IP, that's public ipv4 but as @Nightw0lf said it seems to be some kind of dummy cloudflare ipv4 address

the client usually sends a trace and 172 starting ips are usually private network ips, maybe i am wrong idk

Edited by BruT
  • Sad 1
  • 0
Posted
On 1/22/2023 at 7:39 AM, BruT said:

the client usually sends a trace and 172 starting ips are usually private network ips, maybe i am wrong idk

 

No, maybe you're getting confused with the 192.* starting IPs, that octet is reserved for LAN as far as I remember ^^

  • 0
Posted

Can I get the ip using httpservletrequest?

or

Servlet

	String externalIp = "127.0.0.1";
	try
	{
		final URL autoIp = new URL("http://ip1.dynupdate.no-ip.com:8245/");
		try (BufferedReader in = new BufferedReader(new InputStreamReader(autoIp.openStream())))
		{
			externalIp = in.readLine();
		}
	}
	catch (IOException e)
	{
	}
	player.sendMessage("Your IP address is " + externalIp);

I tried this. But this outputted the server's ip.

Is it possible to outputted the user's ip?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • Hello friends, good morning, good afternoon or good evening, depending on the time you are seeing this! I have been trying to decompile and compile again with only the classes that I want LineageEffect.u for a few days now, but I have not been successful. Could someone help me by clearing up some doubts about how I can do this work and be successful?!
    • **INTERLUDE REMASTERED** Moonland is a server that's been running for about three years without wipe, and they don't plan on wiping it anytime soon. I'm selling my items or even the account due to not having much time to play anymore. I'm selling only for $$$. Not going to disclose my nickname in the server, but here are some of the items: Lvl 5 equipment for both mage and fighter +100 mage pvp set 2mastery jewels for fighter, 2 for mage, blessed antharas, blessed queen ant, ring of fallen angel, earring of fafurion. 1k + col, VIP cosmetics for armor, agathion and weapons(duals + mage wep)   I'm only selling for real money via paypal or cs2 skins so don't offer me anything else.
    • ➡ Discount for your purchase: MAY2025 (10% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • ➡ Discount for your purchase: MAY2025 (10% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
  • Topics

×
×
  • Create New...