We recommend to use UDP instead of TCP if possible. See TCP vs UDP.
dynamic configuration
In the Communication options tab of the build specifications set the check mark Enable lwIP TCP/IP support.
Set the IP address to 7.7.7.7
The section Set IP address programmatically below shows how IP address is set with dynamic configuration.
fix configuration
If you set any other IP address or enable DHCP support, the Ethernet component will be started before any VI is executed. This leads to longer boot time and can block the program (when no network is connected) before a watchdog can be set up or a life sign can be given out. The settings (IP adress, gateway, MAC address…) cannot be changed at runtime.
You will get the error Failed to open the lan-device in the VisualDSP++ console output if you use programmatic IP configuration with fix configuration.
From SDK version 3.2.1 empoli SP1 the IP Address, Subnet Mask, Gateway and MAC address can be set in the program at the start of th Ethernet component.
drag and drop this VI snippet into a LabVIEW block diagram.
In version 3.2.1 a workaround is needed to enable a correct setting of the MAC address.