<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Obtain client IP address using web script in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/obtain-client-ip-address-using-web-script/m-p/212092#M165222</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Got it, all we need is a cast:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;if (req instanceof WebScriptServletRequest) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;HttpServletRequest r = ((WebScriptServletRequest) req).getHttpServletRequest();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;String sourceIp = r.getRemoteAddr();&lt;BR /&gt;}&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Dec 2011 09:57:00 GMT</pubDate>
    <dc:creator>scouil</dc:creator>
    <dc:date>2011-12-15T09:57:00Z</dc:date>
    <item>
      <title>Obtain client IP address using web script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/obtain-client-ip-address-using-web-script/m-p/212089#M165219</link>
      <description>Is there a way to obtain the clients IP address using an MVC web script?</description>
      <pubDate>Fri, 09 Oct 2009 20:41:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/obtain-client-ip-address-using-web-script/m-p/212089#M165219</guid>
      <dc:creator>tonyc</dc:creator>
      <dc:date>2009-10-09T20:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain client IP address using web script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/obtain-client-ip-address-using-web-script/m-p/212090#M165220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sure, but you have to use Java as your controller. Alfresco's WebScriptRequest wraps around a standard Java HttpServletRequest, which holds the IP adress of the requester.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2009 06:23:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/obtain-client-ip-address-using-web-script/m-p/212090#M165220</guid>
      <dc:creator>rogier_oudshoor</dc:creator>
      <dc:date>2009-10-12T06:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain client IP address using web script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/obtain-client-ip-address-using-web-script/m-p/212091#M165221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was wondering if this changed or not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With my WebScriptRequest I couldn't find a way to get the IP address or to retrieve a HttpServletRequest Object where I could apply getRemoteAddr().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And I was wandering, is the java-backed webscript the only way to do it or could I just expose some java object to javascript that would enable me to get the client IP?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2011 15:39:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/obtain-client-ip-address-using-web-script/m-p/212091#M165221</guid>
      <dc:creator>scouil</dc:creator>
      <dc:date>2011-11-29T15:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain client IP address using web script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/obtain-client-ip-address-using-web-script/m-p/212092#M165222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Got it, all we need is a cast:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;if (req instanceof WebScriptServletRequest) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;HttpServletRequest r = ((WebScriptServletRequest) req).getHttpServletRequest();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;String sourceIp = r.getRemoteAddr();&lt;BR /&gt;}&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 09:57:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/obtain-client-ip-address-using-web-script/m-p/212092#M165222</guid>
      <dc:creator>scouil</dc:creator>
      <dc:date>2011-12-15T09:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain client IP address using web script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/obtain-client-ip-address-using-web-script/m-p/212093#M165223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How to track IP address of Client while auditing in alfresco?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2013 05:46:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/obtain-client-ip-address-using-web-script/m-p/212093#M165223</guid>
      <dc:creator>gmahesh</dc:creator>
      <dc:date>2013-03-04T05:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain client IP address using web script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/obtain-client-ip-address-using-web-script/m-p/212094#M165224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is not working for alfresco 4.2x.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea what is working solution ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 08:47:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/obtain-client-ip-address-using-web-script/m-p/212094#M165224</guid>
      <dc:creator>g_rathod</dc:creator>
      <dc:date>2014-05-29T08:47:05Z</dc:date>
    </item>
  </channel>
</rss>

