This article applies to:
E-Prime Extensions for Tobii Pro 3.2
Symptoms
The following error occurs in the TPLOpen PackageCall when port 8080 cannot be reached or when localhost does not resolve to 127.0.0.1 in Tobii Pro-enabled experiments:
NOTE: The specific localhost IP address may differ from what is shown above.
Detail
This error may occur for two different reasons:
1) Tobii Pro Lab's External Presenter API uses port 8080 for WebSocket communications. However, another application that is running on the Tobii Pro Lab computer can allocate this port for its own use prior to Tobii Pro Lab being launched. If another process is running on port 8080, then an E-Prime Extensions for Tobii Pro Lab-enabled experiment will not be able to establish communications with Tobii Pro Lab.
2) If your eye tracker connects via USB and you do not have any network adapters enabled on a one-machine setup, the hostname "localhost" may resolve to an incorrect IP Address for the Tobii Pro Lab connection.
Workaround
Workaround for port 8080:
If another process is using port 8080, then Tobii Pro advises users to change the port that Tobii Pro Lab uses (scroll to the "Connect E-Prime to Pro Lab" section). This workaround will show how to confirm that another process is running on port 8080 and if so then how to identify an alternative port number and configure Tobii Pro Lab to use the alternative port.
Confirm that another process is using port 8080 on the Tobii Pro Lab computer
Use the Windows netstat command to identify which applications are using port 8080:
- Hold down the Windows key and press the R key to open the Run dialog.
- Type “cmd” and click OK in the Run dialog.
- Verify the Command Prompt opens.
- Type “netstat -a -n -o | find "8080"". A list of processes using port 8080 are displayed.
- the symbol before the word "find" is the pipe symbol ("|") and not a lower-case l.
- the outer quotes should NOT be entered. Quotes around the port number are required.
If one or more processes use port 8080 then the processes are displayed. If no process is accesses port 8080 then no information is returned.
Identify an alternative available port number
If a process is using port 8080, then re-run the netstat command without the "| port "8080" to identify the ports that are currently in use. Select an available port, one that is not returned by the netstat command, to use with Tobii Pro Lab. PST recommends avoiding well-known port numbers (ports 0 through 1023) and specifying a user (registered) port (ports 1024-49151). For example, the following output from netstat shows that port 7680 is being utilized by a process and therefore is not available for Tobii Pro Lab:
Launch Tobii Pro Lab with another port
If another process on the Tobii Pro Lab computer is already using port 8080, then configure Tobii Pro Lab to use another port by launching it from the command line with the option Api.Server.Port = PORT_NUMBER. For example, to specify port 3785, enter the following from a Windows command prompt:
"C:\Program Files\Tobii\Tobii Pro Lab\Bin\TobiiProLab.exe" Api.Server.Port=3785
NOTE: The command line solution must be used every time that Tobii Pro Lab is launched if you want to change the Tobii Pro Lab port; it only sets the port number for the current Tobii Pro Lab session. You can also configure a Tobii Pro Lab shortcut to use a specified port (avoiding the need for command prompt) by putting the Api.Server.Port = PORT_NUMBER at the end of the Target Path.
Workaround for single machine configurations with no network adapters:
In cases where there are no network adapters enabled on the machine, change the Host property in the Tobii Pro Lab Device to 127.0.0.1.
See Also:
RELEASE INFO: E-Prime Extensions for Tobii Pro 3.2 Released [28932]
Comments
0 comments
Please sign in to leave a comment.