Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
If I have create an api for any universal user in c#.net.

api URL is
http://mydomainname.com/api/clientinfo
without any parameter.

and other client is using my above api in their website www.clientdomain-name.com and its IP address is 101.101.101.101(example).

when my client access my api (http://mydomainname.com/api/clientinfo) using jquery or any other way then I want to return as response their details like below in json string:

{url: "www.clientdomain-name.com", ip: "101.101.101.101", static:"false", status: "success" }



How can I get above result in C#.Net web api controller?

What I have tried:

How can I achieve output for above question?
Posted
Updated 4-Nov-16 19:47pm
v2

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900