# Any action could provide local IP address?

**URL:** https://www.finalbuilder.com/forums/t/any-action-could-provide-local-ip-address/1871
**Category:** Discussion
**Created:** [October 9, 2011, 4:00am UTC](https://www.finalbuilder.com/forums/t/any-action-could-provide-local-ip-address/1871 "2011-10-09T04:00:19Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [October 9, 2011, 4:00am UTC](https://www.finalbuilder.com/forums/t/any-action-could-provide-local-ip-address/1871/1 "2011-10-09T04:00:19Z")

</div>

Because the server's IP chagnes sometimes, need to know local IP address. Is there any action could receive it?

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [October 9, 2011, 9:08am UTC](https://www.finalbuilder.com/forums/t/any-action-could-provide-local-ip-address/1871/2 "2011-10-09T09:08:01Z")

</div>

&nbsp;The only thing that comes to mind is to use the Execute Program action to run %SYSDIR%\ipconfig.exe and then set an Action output monitor to capture the first match to a variable and use a regex like : \sIPv4\sAddress.\*

&nbsp;

You would still then need to process the variable to extract the ip address, use the String Substring action, start position 37 and length 15 worked for me.&nbsp;

&nbsp;

See attached example.
[IPADDRESS.fbp7](https://www.finalbuilder.com/forums/uploads/default/original/2X/4/440acebae256a28024e64c63312103db42528da1.fbp7) (15.275 KB)
