Getting the IP address of server in ASP.NET?

This should work: //this gets the ip address of the server pc public string GetIPAddress() { IPHostEntry ipHostInfo = Dns.GetHostEntry(Dns.GetHostName()); // `Dns.Resolve()` method is deprecated. IPAddress ipAddress = ipHostInfo.AddressList[0]; return ipAddress.ToString(); } http://wec-library.blogspot.com/2008/03/gets-ip-address-of-server-pc-using-c.html OR //while this gets the ip address of the visitor making the call HttpContext.Current.Request.UserHostAddress; http://www.geekpedia.com/KB32_How-do-I-get-the-visitors-IP-address.html

What is the most reliable way to hide / spoof the referrer in JavaScript?

I have found a solution which works in Chrome and Firefox. I’ve implemented the code in a Userscript, Don’t track me Google. Demo (tested in Firefox 9 and Chrome 17): http://jsfiddle.net/RxHw5/ Referrer hiding for Webkit (Chrome, ..) and Firefox 37+ (33+*) Webkit-based browsers (such as Chrome, Safari) support <a rel=”noreferrer”>spec. Referrer hiding can fully be … Read more

How to test android referral tracking?

The easiest way is using adb. You don’t have to write any code. Just run in a terminal: adb shell am broadcast -a com.android.vending.INSTALL_REFERRER -n <your.package>/.<path.up.until.your.BroadcastReceiver> –es “referrer” “utm_source=test_source\&utm_medium=test_medium\&utm_term=test_term\&utm_content=test_content\&utm_campaign=test_name” Here’s my exact line: am broadcast -a com.android.vending.INSTALL_REFERRER -n net.lp.collectionista/.util.broadcast_receivers.FacadeBroadcastReceiver –es “referrer” “utm_source=test_source\&utm_medium=test_medium\&utm_term=test_term\&utm_content=test_content\&utm_campaign=test_name” But your BroadcastReceiver may need to be the AnalyticsReceiver, i.e. For Google Analytics … Read more

Get referrer after installing app from Android Market

I would try to help who, like me, fails to make install_referrer work and who don’t find ANY useful information about these features. Notes: The intent com.android.vending.INSTALL_REFERRER will be caught during the install process, not when the application starts for the first time. The referrer …extras.getString(“referrer”).. is fixed but the contents can be any string … Read more