Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8193777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:35:58+00:00 2026-06-07T04:35:58+00:00

I am making an API call and that call requires Request IP address. I

  • 0

I am making an API call and that call requires Request IP address.
I am using ServletRequest.getRemoteAddr() to get the IP of the request.
For one user, getRemoteAddr() is returning IPv6 rather than IPv4 why is this??

From my understanding, IPv6 is extension to the IPv4, where users can choose to use IPv6
rather than IPv4. Does this means user or user’s ISP is using IPv6? How does this work….
Also is there a way to get IPv4 equivalent?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T04:35:59+00:00Added an answer on June 7, 2026 at 4:35 am

    ipv6 is not an “extension” to ipv4, it’s an alternative addressing scheme. whether a client is using an ipv6 or ipv4 address is up to the client’s configuration alone (although the intermediaries between the client and your server will need to be compatible). there is no way to get an ipv4 “equivalent” to an ipv6 address as ipv6 addresses are not backwards compatible (on the flip side, though, there is a way to encode ipv4 addrs in an ipv6 compatible way).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a WordPress plugin that uses WP_HTTP for making an API call.
I'm making an API call to a service, but it's returning invalid JSON. The
I am making the following request as a userless API call: https://api.foursquare.com/v2/venues/xxx123yyy/photos?v=20120321&group=venue but the
I'm building an javascript api that will call some java objects using mozilla rhino.
I'm making an api call to a site using the code as shown below
I'm making an ajax call to a rest API and specified the following header
I'm making a bunch of Rally API calls using the C# Rally Rest API
I'm making use of an API on the internet that is marshalling objects to
I'm making an application in Win32 API that uses the modern Ribbon style UI.
I'm making an android application using phonegap. I'm using phonegap's Storage api for querying

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.