<?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 find ipaddress from process studio in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/how-to-find-ipaddress-from-process-studio/m-p/69338#M21943</link>
    <description>hi all,&lt;BR /&gt;can anyone of know how to find ip from process studio of current machine on which i am running blueprism. I have tried with utility-environment vbo but not found any solution.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;satish reddy&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 26 Feb 2020 10:01:00 GMT</pubDate>
    <dc:creator>satishreddy2</dc:creator>
    <dc:date>2020-02-26T10:01:00Z</dc:date>
    <item>
      <title>how to find ipaddress from process studio</title>
      <link>https://community.blueprism.com/t5/Product-Forum/how-to-find-ipaddress-from-process-studio/m-p/69338#M21943</link>
      <description>hi all,&lt;BR /&gt;can anyone of know how to find ip from process studio of current machine on which i am running blueprism. I have tried with utility-environment vbo but not found any solution.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;satish reddy&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Feb 2020 10:01:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/how-to-find-ipaddress-from-process-studio/m-p/69338#M21943</guid>
      <dc:creator>satishreddy2</dc:creator>
      <dc:date>2020-02-26T10:01:00Z</dc:date>
    </item>
    <item>
      <title>RE: how to find ipaddress from process studio</title>
      <link>https://community.blueprism.com/t5/Product-Forum/how-to-find-ipaddress-from-process-studio/m-p/69339#M21944</link>
      <description>Hello Satish,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am not aware of an action that can do that in any of the VBOs that ship with Blue Prism out of the box. However, you may be able to write a code stage if you or anyone in your team is comfortable using C# or VB.net to leverage the .NET framework to get your local IP address. I played with this a while and I am providing an example I created just to show you what you can do if you want to pursue this route. The VBO and the code contained in the 'Get Local IP Addresses' code stage were written in VB for guidance purposes only. This VBO or code is not intended to solve your specific issue, it is meant to show you a possible option and will require that you adjust the example to get it to do what you need.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The example takes a hostname as a string parameter (your local computer name for example) and returns a collection of all IP addresses (as strings) that an 'ipconfig' command would return using the command prompt window.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I also suggest taking a look at our documentation called 'Extending Automations using the .NET Framework' available from the BP Portal in case this example helps:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://portal.blueprism.com/system/files/2017-09/Blue%20Prism%20Data%20Sheet%20-%20Extending%20Automations%20using%20the%20.NET%20Framework.pdf" target="_blank" rel="noopener"&gt;https://portal.blueprism.com/system/files/2017-09/Blue%20Prism%20Data%20Sheet%20-%20Extending%20Automations%20using%20the%20.NET%20Framework.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jorge Barajas&lt;BR /&gt;Blue Prism&lt;BR /&gt;Senior Product Consultant&lt;BR /&gt;Austin, Texas&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Feb 2020 23:15:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/how-to-find-ipaddress-from-process-studio/m-p/69339#M21944</guid>
      <dc:creator>jorge.barajas</dc:creator>
      <dc:date>2020-02-26T23:15:00Z</dc:date>
    </item>
    <item>
      <title>RE: how to find ipaddress from process studio</title>
      <link>https://community.blueprism.com/t5/Product-Forum/how-to-find-ipaddress-from-process-studio/m-p/69340#M21945</link>
      <description>&lt;SPAN&gt;The answer to this is complicated by the fact that there can be more than one IP address per machine. I'd check out this&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://stackoverflow.com/questions/6803073/get-local-ip-address" target="_blank" rel="noopener"&gt;StackOverflow&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;thread with more of an explanation. One solution that seems to work particularly well is&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://stackoverflow.com/a/27376368/1745947" target="_blank" rel="noopener"&gt;this one&lt;/A&gt;&lt;SPAN&gt;, which you can implement in the below code stage.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Inputs: None&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;Outputs: Local IP&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;PRE class="language-csharp"&gt;Using Sock As New &lt;SPAN class="token class-name"&gt;Socket&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;AddressFamily&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;InterNetwork&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; SocketType&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;Dgram&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token number"&gt;0&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;
	' Because we are &lt;SPAN class="token keyword"&gt;using&lt;/SPAN&gt; UDP &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;SocketType&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;Dgram&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Connect&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; will not actually connect to anything&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;
	&lt;SPAN class="token string"&gt;' but it will calculate the route to use which should give us the IP that we'&lt;/SPAN&gt;re looking &lt;SPAN class="token keyword"&gt;for&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;
	Sock&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Connect&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"8.8.8.8"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token number"&gt;65530&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;
	Dim EndPoint As IPEndPoint &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; Sock&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;LocalEndPoint
	Local_IP &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; EndPoint&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;Address&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;ToString&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;
End Using​&lt;/PRE&gt;
&lt;BR /&gt;You'll need to edit the Code Options and add System.Net and System.Net.Sockets to the Namespace Imports section.&lt;BR /&gt;&lt;BR /&gt;This seemed to work well for me, but you'll want to double check that the IP address it is calculating is the one you're looking for. If not, you'd need additional code to search through the various addresses assigned to your machine.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Nicholas Zejdlik&lt;BR /&gt;RPA Developer&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Feb 2020 15:07:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/how-to-find-ipaddress-from-process-studio/m-p/69340#M21945</guid>
      <dc:creator>NicholasZejdlik</dc:creator>
      <dc:date>2020-02-27T15:07:00Z</dc:date>
    </item>
  </channel>
</rss>

