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 8146889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:09:34+00:00 2026-06-06T14:09:34+00:00

I need to get the server’s IP address so that this can be sent

  • 0

I need to get the server’s IP address so that this can be sent along with a Key/Value string collection to a Payment Gateway provider.

I’m running localhost, and Request.ServerVariables["LOCAL_ADDR"] is returning ::1

The validation error I’m getting is returned from Sage Pay:

The ClientIPAddress format is invalid. Should not include leading
zero”s, and only include values in the range of 0 to 255.

Why is this, and how do I get a valid IP address to send?

  • 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-06T14:09:35+00:00Added an answer on June 6, 2026 at 2:09 pm

    Disable IPv6 on your local network adapter. ::1 means ‘LOCALHOST’in IPv6. Then you’ll get the normal IPv4 127.0.0.1

    Anyway ::1 is a *VALID* IP address..

    More on LOCALHOST definition: http://en.wikipedia.org/wiki/Localhost

    For IPv4 communications, the virtual loopback interface of a computer
    system is normally assigned the address 127.0.0.1 with subnet mask
    255.0.0.0. Depending on the specific operating system in use (notably in Linux and Microsoft Windows) and the routing mechanisms installed,
    this populates the routing table of the local system with an entry so
    that packets destined to any address from the 127.0.0.0/8 block would
    be routed internally to the network loopback device.

    In IPv6, on the
    other hand, the loopback routing prefix ::1/128 consists of only one
    address ::1 (0:0:0:0:0:0:0:1 in full notation, the address with a one
    at its least significant bit and zero otherwise) is explicitly defined
    as the loopback address,[6] though additional addresses may be
    assigned as needed to the loopback interface by the host
    administrator.

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

Sidebar

Related Questions

I need to get the raw server response, with headers. This also means that
Like below,I need to send name and psw value to server side, and get
Let's say I have some data that I need to get from the server
i need to get data along with images from .net web server. i have
How can I get SQL Server to return the first value (any one, I
I need to get asp.net development server port number in C# method. can you
There's a strange requirement where I need to get server side data on page
I need to get a listing of a server-side directory inside SAP. How do
I need to get an image from a SQL Server as a byte[], and
I need to write a query on SQL server to get the list of

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.