Configure your network
4 minute read
Your PC can only reach the controller when both are on the same network. The controller has the address controller_ip_addressThe IP address of your controller. In most cases 192.168.2.100., so you give the network port of your PC a fixed IP addressAn address you type in yourself instead of getting one automatically, so it stays the same.
next to it.
Virtual machine
Running the controller in a virtual machine? The virtual machine guide already sets up the network between your PC and the virtual machine. Go straight to Test your connection, with the address that guide gives the controller.Choose an address
The subnet maskThe subnet mask tells your PC which part of an address names the network. With 255.255.255.0 the first three numbers must match; only the last one differs per device.
255.255.255.0 splits an address in two. The first three numbers name the network and must be the same on your PC and the controller. The last number names the device and must be different.
So give your PC:
| Setting | Value |
|---|---|
| Address | 192.168.2.x, where x is a number from 1 to 254 that no other device on the network uses. Not 100: that is the controller. The examples use 192.168.2.26. |
| Subnet mask (netmask) | 255.255.255.0 |
| Gateway, DNS | Leave empty. |
Set the address
Plug the network cable into your PC and the controller first. Then set the address on the network port that has the cable in it.
Set the address on Ubuntu
The numbers in the screenshots match the steps.
-
Open
Settings. -
Go to
Network. -
Under
Wired, click the cogwheel to open the wired settings.
-
Open the
IPv4tab. -
Set
IPv4 MethodtoManual. -
Under
Addresses, type the address of your PC inAddress, for example192.168.2.26. -
Type
255.255.255.0inNetmask. -
Click
Apply.
To use the new address, switch the Wired connection off and on again with its switch.
Watch it as a video
Set the address on Windows
The numbers in the screenshots match the steps.
-
Press Windows+R, type
ncpa.cpland press Enter. TheNetwork Connectionswindow opens. -
Find the wired adapter that has the cable to the controller in it.
-
Right-click it and select
Properties.
-
In the list, select
Internet Protocol Version 4 (TCP/IPv4). -
Click
Properties.
-
Select
Use the following IP address:. -
Type the address of your PC in
IP address:, for example192.168.2.26. -
Type
255.255.255.0inSubnet mask:. -
Click
OK, andOKagain in the adapter’s properties.
Set the address on macOS
The numbers in the screenshots match the steps.
-
Open
System Settings. -
Go to
Network. -
Select the wired network adapter that has the cable to the controller in it.
-
Click
Details....
-
On the
TCP/IPpage, setConfigure IPv4toManually. -
Type the address of your PC in
IP address, for example192.168.2.26. -
Type
255.255.255.0inSubnet mask. -
Click
OK.
Test your connection
To check that your PC reaches the controller, pingPing sends a few small test messages to an address and reports how many come back. It shows whether the network path works, before any application is involved.
it. Open a terminal (on Windows: press the Windows key, type cmd and press Enter) and send five pings:
On Ubuntu and macOS:
ping -c 5 controller_ip_address
On Windows:
ping -n 5 controller_ip_address
The connection works when all five come back. The summary at the end then shows 0% packet loss, or (0% loss) on Windows.
If no replies come back, work through Connection troubleshooting.
Controller on another address
If your controller has been given a different address, use its network instead of192.168.2.x. See Network configuration for how the controller’s address is set.