Determining your Virtual Sensor IP Address
As mentioned above, you will need to know this QikEasy Virtual Wireless Sensor’s IP address in order to be able to set its measurement data values remotely. There are a couple possible ways to determine this IP address.
Method 1: The Virtual Sensor Setup Process
As above, at the end of the initial Virtual Sensor setup process, our web user interface will display the virtual sensor’s IP address.
Method 2: Through a Word Block program
Every time upon bootup of the Virtual Wireless Sensor, the device will start in virtual Color Sensor mode, and will preset its measurements based on the IP address. It is possible to use a Word Block program to read these measurements and display the IP address on your Spike Prime hub.
For example, when the IP address is 123.0.1.45, the color sensor measurements will be set as in this table:
Measurement | Value | Description |
Red (Ranges from 0 to 1024) | 123 | First IP address number |
Green (Range from 0 to 1024) | 0 x 1024 / 255 | Second IP address number |
Blue value (Range from 0 to 1024) | 1 x 1024 / 255 | Third IP address number |
Color (discrete color. Ranges from -1 to 10) | 1 x 1024 / 255 | The hundreds digit of the 4th IP address number |
Reflected Light (Ranges from 0 to 100) | 45 | The tens and units digits of the 4th IP address number |
We recommend that you use a program to display the IP address. You should run this program immediately after you start your hub that has the Virtual Sensor connected. You may store this program into one of the hub’s storage positions so that you may run the program any time you need it.
The following is the Word Block program for Spike Prime 3.0. Make sure you remember to change the Port numbers for all the blue blocks to the port that your QikEasy Adapter is connected to.

The following is the Word Block program for Spike Prime 2.0 and Robot Inventor. The difference is mainly due to the fact that Spike Prime 3.0 interprets RGB as 0 to 1024, while the other systems interpret them as 0 to 255. Make sure you remember to change the Port numbers for all the blue blocks to the port that your QikEasy Adapter is connected to.

Reserving a Fixed IP Address for your Virtual Sensor
In most cases, restarting your QikEasy Virtual Sensor within a short period of time will result in your Wifi router assigning it the same IP address as before. However, if you attempt to restart it after several hours or days, your QikEasy adapter will likely be assigned a different IP address. The IP address assignment behavior solely depends on the design of your Wifi router.
Especially for long term usage, in many scenarios, it would be useful to ensure that your Virtual Sensor’s assigned IP address always stay the same. This would allow the remote client that sends data updates to always use the same IP address to send updates.
To ensure that your QikEasy Virtual Sensor always gets the same IP address from your Wifi router, you can use a technique called IP address reservation, also known as DHCP reservation or static DHCP. This technique involves configuring the Wifi router to reserve a specific IP address for a particular Wifi client, based on its MAC address.
Here are the steps to set up IP address reservation on most Wifi routers:
- Determine the MAC address of the Wifi client device that you want to assign a static IP address to. You can usually find the MAC address in the device’s network settings.
- Log in to the Wifi router’s configuration page, which can typically be accessed through a web browser using the router’s IP address.
- Look for a section in the router’s configuration page called “DHCP Reservation,” “Static DHCP,” or similar.
- Add a new reservation, specifying the MAC address of the Wifi client and the IP address you want to assign to it.
- Save the changes, and restart the router and the Wifi client device.
Once you have set up IP address reservation on your Wifi router, the designated Wifi client will always receive the same IP address every time it connects to the network, as long as the router is configured properly and the reserved IP address is not in use by another device.
You may refer to this web page for more details on how to setup IP address reservation.