# Network interface not available in ARSim

**URL:** <https://community.br-automation.com/t/network-interface-not-available-in-arsim/4456>\
**Category:** B&R Software & Runtime\
**Tags:** automation-studio, plc, arsim\
**Created:** [October 1, 2024, 12:16pm UTC](https://community.br-automation.com/t/network-interface-not-available-in-arsim/4456 "2024-10-01T12:16:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fischer](https://avatars.discourse-cdn.com/v4/letter/f/FF8800/32.png) [@Fischer](https://community.br-automation.com/u/Fischer)\
**Post date:** [October 1, 2024, 12:16pm UTC](https://community.br-automation.com/t/network-interface-not-available-in-arsim/4456/1 "2024-10-01T12:16:59Z")

</div>

Hi together,

when I simulate a X20CP1586 with ArSim on my PC I can’t communicate with the PLC.  
If found out that when I initialize the Tcp connection with the FB “TcpOpen” the error 32612 “tcpERR\_INTERFACE - Invalid interface address” occurs.

So I checked the Interface name. I used the interface “IF2” to get the ip with “CfgGetIPAddr”. Then I took this ip for the “TcpOpen”-FB.

How to setup a TCP connection in ArSim? Are there any limitations on ArSim?  
Why is the code that runs on real hardware not running on ArSim?

I also found out that when I want to setup an SimDevice, the SimDevice couldn’t startup. Maybe the same reason.  
The log says “PnPManager - Couldn’t start AR I/O Management master - IF2.ST1”

You can also answer in germany (my native language).

Regards  
Jan

---

<div class="post-metadata">

**Author:** ![krausertm](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/krausertm/32/98_2.png) [@krausertm](https://community.br-automation.com/u/krausertm)\
**Post date:** [October 1, 2024, 12:20pm UTC](https://community.br-automation.com/t/network-interface-not-available-in-arsim/4456/2 "2024-10-01T12:20:42Z")

</div>

If you want to communicate with the PLC only locally, 127.0.0.1 will be fine. For TcpOpen you just can leave pIfAddr = 0, so it listens on all interfaces.

If you want to connect to the ARSim from another network client, use 0.0.0.0 for the ARSim IP address.

PLC Configuration → Simulation → IP address

I can’t really help you regarding the SimDevice, since I never used it…

Best regards,

---

<div class="post-metadata">

**Author:** ![Fischer](https://avatars.discourse-cdn.com/v4/letter/f/FF8800/32.png) [@Fischer](https://community.br-automation.com/u/Fischer)\
**Post date:** [October 1, 2024, 1:41pm UTC](https://community.br-automation.com/t/network-interface-not-available-in-arsim/4456/3 "2024-10-01T13:41:34Z")

</div>

Hi Marcel,

like you mentioned when I set pIfAddr = 0 my TCP Connection is running.  
Big step forward.

Now I only have to found out why I have an issue with the SimDevice.

Thank you

---

<div class="post-metadata">

**Author:** ![krausertm](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/krausertm/32/98_2.png) [@krausertm](https://community.br-automation.com/u/krausertm)\
**Post date:** [October 1, 2024, 1:58pm UTC](https://community.br-automation.com/t/network-interface-not-available-in-arsim/4456/4 "2024-10-01T13:58:57Z")

</div>

> [@Fischer](#):
>
> I have an issue with the SimDevice.

What is your usecase? I would’t really recommend using the IO switch board if that is what you are trying to do… Too much effort for little benefits… imho…

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/brcommunity/original/1X/a202d64f0f03e22a662ed33fbbca6879f1efb794.jpeg) [@system](https://community.br-automation.com/u/system)\
**Post date:** [November 14, 2024, 2:44pm UTC](https://community.br-automation.com/t/network-interface-not-available-in-arsim/4456/5 "2024-11-14T14:44:14Z")

</div>



---

<div class="post-metadata">

**Author:** ![marcusbnr](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/marcusbnr/32/256_2.png) [@marcusbnr](https://community.br-automation.com/u/marcusbnr)\
**Post date:** [November 14, 2024, 3:55pm UTC](https://community.br-automation.com/t/network-interface-not-available-in-arsim/4456/6 "2024-11-14T15:55:53Z")

</div>

Hi @Fischer do you have any updates to this topic?
