<?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 How to retrieve IP adress in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-ip-adress/m-p/267070#M220200</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 first posted here &lt;/SPAN&gt;&lt;A href="https://forums.alfresco.com/en/viewtopic.php?f=14&amp;amp;t=22321" rel="nofollow noopener noreferrer"&gt;https://forums.alfresco.com/en/viewtopic.php?f=14&amp;amp;t=22321&lt;/A&gt;&lt;SPAN&gt; but I thought it's be better to create a topic to express my own needs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I usually do javascript webservices but for one of them I need to discriminate the content depending on the IP of the client and it's not available in js.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've mainly evaluated 2 possible solutions but couldn't get any of them to work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Expose the java object encapsulating the remote address&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Write a java webservice&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know it's possible to retrieve the remote address in a basic servlet and was told (cf previous link) that it should be possible with a java webservice but I went through all the methods and couldn't retrieve it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Dec 2011 11:13:57 GMT</pubDate>
    <dc:creator>scouil</dc:creator>
    <dc:date>2011-12-05T11:13:57Z</dc:date>
    <item>
      <title>How to retrieve IP adress</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-ip-adress/m-p/267070#M220200</link>
      <description>Hello,I first posted here https://forums.alfresco.com/en/viewtopic.php?f=14&amp;amp;t=22321 but I thought it's be better to create a topic to express my own needs.I usually do javascript webservices but for one of them I need to discriminate the content depending on the IP of the client and it's not ava</description>
      <pubDate>Mon, 05 Dec 2011 11:13:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-ip-adress/m-p/267070#M220200</guid>
      <dc:creator>scouil</dc:creator>
      <dc:date>2011-12-05T11:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve IP adress</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-ip-adress/m-p/267071#M220201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I finally did it. You don't access it with a method but with 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:58:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-ip-adress/m-p/267071#M220201</guid>
      <dc:creator>scouil</dc:creator>
      <dc:date>2011-12-15T09:58:49Z</dc:date>
    </item>
  </channel>
</rss>

