Reply
Member
Posts: 3
Registered: ‎12-31-2018

Customer IP

How to can i check my customers IP address? In transaction detail, under Authorization Information, in Customer IP field. It only shows my websites IP address where the transaction occurs. 

 

Regular Contributor
Posts: 83
Registered: ‎05-29-2015

Re: Customer IP

If it is a web server you can probably get it from CGI variables of the webserver.

Member
Posts: 3
Registered: ‎12-31-2018

Re: Customer IP

So how to make it appear as my customers IP address?

Regular Contributor
Posts: 83
Registered: ‎05-29-2015

Re: Customer IP

<transactionRequest><customerIP> if using the API.

Member
Posts: 3
Registered: ‎12-31-2018

Re: Customer IP

how to do that? I'm sorry i'm new to this

Regular Contributor
Posts: 83
Registered: ‎05-29-2015

Re: Customer IP

That is hard to say.  It depends if you are wrinting your own code using one of Auth.net's sdks or a plugin for some package and if it is using API, AIM or whatever.

 

If it is a plugin, you need to contact the person who wrote it.

If writing your own, see the API Payment examples and sample code.  The first Auth example has it in there.

Member
Posts: 1
Registered: ‎07-23-2019

Re: Customer IP


@Michael267iptv wrote:

How to can i check my customers apk IP address?

 

  1. Open Windows Start menu.
  2. Select Run. Type: command and click OK.
  3. At the blinking cursor, type: ipconfig /all and press Enter.
  4. Look for these entries near the end of the list: - Dhcp Enabled. ...
  5. To exit, at the blinking cursor, type: exit and press Enter.

Thanks for the updates on this thread. Helpful

Posts: 492
Topics: 0
Kudos: 99
Blog Posts: 0
Ideas: 0
Solutions: 42
Registered: ‎04-28-2017

Re: Customer IP

You can send your customer's IP address along with the createTransactionRequest request, in the customerIP element of your XML or JSON object.

 

One way to get the IP address in C# is the following:

public string GetIPAddress()
{
string IPAddress = "";
System.Net.IPHostEntry Host = default(System.Net.IPHostEntry);
string Hostname = null;
Hostname = System.Environment.MachineName;
Host = System.Net.Dns.GetHostEntry(Hostname);
foreach (System.Net.IPAddress IP in Host.AddressList)
{
if (IP.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork)
{
IPAddress = Convert.ToString(IP);
}
}
return IPAddress;
}
Powered by NexWebSites.com -
Certified Authorize.net developers
Member
Posts: 2
Registered: ‎03-04-2020

Re: Customer IP

Just contact the owner of the plugin for more details he would surely help you without any concerns.

If you own the code then check the sample codes here & let us know wht you think.   

Member
Posts: 2
Registered: ‎03-04-2020

Re: Customer IP

[ Edited ]

I am pretty sure this code here did work for me once.

public string GetIPAddress()
{
string IPAddress = "";
System.Net.IPHostEntry Host = default(System.Net.IPHostEntry);
string Hostname = null;
Hostname = System.Environment.MachineName;
Host = System.Net.Dns.GetHostEntry(Hostname);
foreach (System.Net.IPAddress IP in Host.AddressList)
{
if (IP.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork)
{
IPAddress = Convert.ToString(IP);
}
}
return IPAddress;
}