cancel
Showing results for 
Search instead for 
Did you mean: 

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. 

 

malphas0013
Member
11 REPLIES 11

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

kabutotx
Regular Contributor

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

<transactionRequest><customerIP> if using the API.

kabutotx
Regular Contributor

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

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.

kabutotx
Regular Contributor

@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

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
NexusSoftware
Trusted Contributor

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.   

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;
}