# Network and communication settings

### IP address settings in FANUC controller&#x20;

The settings for the IP address are in the menu `Setup` *->* `Host Comm` .&#x20;

\
![Host Comm menu](https://wiki.robobrain.cloud/fanuc/screenshot_20221118-095620_tablet_tp.jpg)

The network setup needs to be done in `1 TCP/IP` -> `TCP/IP` -> `Detailed Setup`.&#x20;

It is necessary to change the network communication of the fanuc according to your network.&#x20;

{% hint style="warning" %}
Make sure, that the robot and robobrain® system are in the same IP address range and the subnet mask is matching the IP address settings.
{% endhint %}

Create a new host to enable the communication between the robobrain® system and the FANUC controller. Name the host "RAP" and give it the iP address of the robobrain® system.&#x20;

{% hint style="info" %}
Please ensure to use the correct ethernet port on the robobrain® system.
{% endhint %}

\
![TCP detailed setup](https://wiki.robobrain.cloud/fanuc/screenshot_20221118-095656_tablet_tp.jpg)

After the settings are done, the connection can be tested using the `ping` button.&#x20;

### Socket Messaging

1. Go back to *Setup -> Host Comm*, select `SM` and press `[SHOW]`\
   ![SM menu](https://wiki.robobrain.cloud/fanuc/screenshot_20221118-095723_tablet_tp.jpg)
2. On the popup menu, select `2 Clients`:\
   ![Clients](https://wiki.robobrain.cloud/fanuc/screenshot_20221118-095733_tablet_tp.jpg)
3. Select `C4:` and press `DETAIL`\
   ![Client selection](https://wiki.robobrain.cloud/fanuc/screenshot_20221118-095758_tablet_tp.jpg)
4. Setup the tag similar to the following screenshot, the `Server IP` has to match your local circumstances\
   ![client tag setup](https://wiki.robobrain.cloud/fanuc/screenshot_20221118-095833_tablet_tp.jpg)

{% hint style="warning" %}
Make sure to set the startup state to <mark style="color:red;">**"DEFINE"**</mark>.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.robominds.de/manual/robots/robot-interfaces/fanuc/fanuc-installation-and-setup/network-and-communication-settings.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
