<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SQL Server Reporting Services</title><link>http://forums.asp.net/191.aspx</link><description>Anything and everything pertaining to SQL Server Reporting Services.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Display IP address from client in a report</title><link>http://forums.asp.net/thread/1895967.aspx</link><pubDate>Thu, 06 Sep 2007 13:37:14 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1895967</guid><dc:creator>shados</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1895967.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=191&amp;PostID=1895967</wfw:commentRss><description>&lt;p&gt;I thought about embedding code, but unfortunately, the Request object is not set in a report (had to import System.web in it first to test that).&lt;/p&gt;
&lt;p&gt;And sending the IP as a parameter would be the easy way, with a catch: Servers tend to have a lot of IPs, even more so if you include the IPv6 ones. Its difficult to &amp;quot;guess&amp;quot; which one is exposed to the server. Can do some tricks using subnet masks and such, but the ideal would be for the server to find it, itself.&lt;br /&gt;&lt;br /&gt;My plan B is to have a config in machine.config or something (multiple apps need it, not just web) with the IP as a key, and we&amp;#39;ll have to make sure not to forget to change it, or something...&lt;/p&gt;</description></item><item><title>Re: Display IP address from client in a report</title><link>http://forums.asp.net/thread/1895304.aspx</link><pubDate>Thu, 06 Sep 2007 07:26:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1895304</guid><dc:creator>ngruson</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1895304.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=191&amp;PostID=1895304</wfw:commentRss><description>&lt;p&gt;You can get a client&amp;#39;s IP address by:&lt;/p&gt;&lt;pre class="coloredcode"&gt;&lt;span class="kwd"&gt;string&lt;/span&gt; GetIPAddress()
{
    &lt;span class="kwd"&gt;return&lt;/span&gt; HttpContext.Current.Request.UserHostAddress;
}&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can put this code in a custom assembly. You can call this assembly in your report: &lt;a href="http://geekswithblogs.net/davyknuysen/archive/2007/03/26/109901.aspx"&gt;http://geekswithblogs.net/davyknuysen/archive/2007/03/26/109901.aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Display IP address from client in a report</title><link>http://forums.asp.net/thread/1895292.aspx</link><pubDate>Thu, 06 Sep 2007 07:14:06 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1895292</guid><dc:creator>Blackat.NET</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1895292.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=191&amp;PostID=1895292</wfw:commentRss><description>&lt;p&gt;You can use a parameter in query string that contain IP address of the server macchine that require the report.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Display IP address from client in a report</title><link>http://forums.asp.net/thread/1894804.aspx</link><pubDate>Thu, 06 Sep 2007 00:31:59 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1894804</guid><dc:creator>shados</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1894804.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=191&amp;PostID=1894804</wfw:commentRss><description>&lt;p&gt;I know that may seem like a weird request, but bear with me. I have multiple possible web sites that would request a report from a given Report Server, and I&amp;#39;d like the IP address of whatever machine requested the report to be displayed somewhere on said report. Is there a way to achieve this?&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;
&lt;p&gt;NOTE: To simplify things, I literally want to display whatever IP the reporting server sees. No need to think complicated about if its a server, a client, etc. Just whatever IP the report server is seeing.&lt;/p&gt;</description></item></channel></rss>