1. First checks

  1. CIGIDriver is a thin layer on top of the UDP socket driver: it reads the same remoteIP, remotePort, localIP, localPort (and the optional remoteIPBind / remotePortBind) fields, opens one UDP socket and exchanges CIGI packets through it. Almost every connection problem is therefore an IP / port / firewall problem; the messages come from UDPSocketDriver (the stream is named CIGIUDPStream inside those messages).
  2. Set "remoteIP": "?" (or "localIP": "?") once. The driver prints the network adapters and their IPv4 addresses of the machine and is discarded (it is not loaded). Copy the right local address, then put the real values back.
  3. Check the IG / host side: the IG's host port must equal this stream's localPort (we receive there), and the IG's IG port (where it listens) must equal remotePort (we send there). The two sides use mirrored ports.
  4. Check the block counters in DIPanel or System Layout: msgCounter rising = packets arrive; nothing rising = nothing reaches the socket (see section 3).
  5. Use a packet capture (Wireshark, filter udp.port == <port>) on the CoreEngine machine to see whether CIGI datagrams arrive and leave.

2. Message reference

<name> is the name of the socket object (CIGIUDPStream).

MessageCauseWhat to do
UDPSocketDriver: <name> WSAStartup failed with error: <n> (Windows)The Windows socket library could not be initialized.Unusual; check that the Winsock service / network stack is working, reboot.
UDPSocketDriver: <name> socket() failed with error code: <n> (Linux: socket() failed)The operating system refused to create the UDP socket.Check resource limits (open files), permissions, and that the network stack is enabled.
UDPSocketDriver: <name> Invalid IP address <ip>The remoteIPBind value is not a valid IPv4 address.Use dotted IPv4 notation, for example 192.168.1.10. Host names are not accepted.
UDPSocketDriver: <name> Bind failed Address in use <ip>:<port> (Windows error 10048)Another program or another stream already uses that local UDP port (a second CoreEngine, the IG simulator on the same PC, another stream of the project).Choose a free localPort (or remotePortBind). If the IG runs on the same PC, use different ports for host and IG. Find the owner with netstat -ano -p udp.
UDPSocketDriver: <name> Bind failed <ip>:<port> with error code: <n> (Linux: without the code)The bind failed for another reason: localIP is not an address of this machine (10049 on Windows), or the port needs privileges (port below 1024 on Linux).Use an address from the "?" adapter list, or an empty localIP if the driver accepts any; use ports above 1024.
UDPSocketDriver: <name> Could not create socket: <ip>:<port>, error code <n>Creating/binding the receiving socket failed.As the two messages above; check the address and port values and the Windows error code.
UDPSocketDriver: <name> non blocking setup failed <ip>:<port>The socket could not be switched to non-blocking mode.Rare; restart, check that no security software interferes with sockets.
UDPSocketDriver: <name> recvfrom() failed. not bind (Windows error 10022)A receive was attempted on a socket that is not bound (the bind failed earlier).Fix the earlier bind error.
UDPSocketDriver: <name> recvfrom() failed. message send too large (check stream block size, current used is <n> bytes)The IG sent a datagram bigger than the receive buffer (the block size of the stream).Increase the input block size so a whole CIGI datagram fits (the driver itself reads up to 65535 bytes at a time), or reduce the number of packets the IG puts in one frame.
UDPSocketDriver: <name> recvfrom() failed with error code: <n> (Linux: recvfrom() failed, ... not connected, ... message too large)Receive error from the operating system (the code tells which).Check the network adapter and that nobody disabled it while running; see the Windows Sockets error list for the code.
UDPSocketDriver: '<name>' not initializedA packet was sent while the socket does not exist: the earlier open (bind / socket) failed.Fix the first error that was printed at start-up.
UDPSocketDriver: <name> sendto() failed with error code: <n> (Linux: sendto() failed)The send failed: no route to the remote IP (10051), network unreachable, adapter down, or the remote address is a broadcast address without permission.Check remoteIP and the routing / subnet of the adapter. UDP does not tell you whether the IG is listening.
Stream '<name>': block '<block>': timing <N>us > system minor frame <M>us; data may be lost. (warning)An input block has a numeric framePerMS longer than the minor frame: IG packets arrive faster than they are read.Use "framePerMS": -1 for input blocks (read every minor frame); 0 disables the block. See the note on framePerMS.

3. No data / no image generator response

CheckWhat to look forFix
Ports mirroredHost sends from localPort side to the IG's listening port; the IG answers to the host's listening port.Our remotePort = the IG's receive port; our localPort = the IG's send (destination) port. If the example in streams.html says 8015 / 8014, the IG needs 8014 / 8015 in the other order.
IP addressesremoteIP is the IG PC; localIP is this PC's adapter on the same subnet (or empty).Use the "?" listing for the adapter. With several adapters (Wi-Fi, VPN, virtual switches) the wrong one is chosen by the OS when the address is empty: set localIP / remoteIPBind explicitly.
FirewallPackets are visible in Wireshark at the network adapter but msgCounter stays at 0. Windows Defender Firewall drops inbound UDP for programs it does not know.Allow the CoreEngine executable (and UDP localPort) inbound on the right network profile (Private / Domain). On the IG side allow its receive port.
IG not started or in standbyNo datagrams leave the IG at all.Start the IG and set it to its CIGI host-control mode; many IGs only send SOF packets after they received the first IG Control from the host.
Loopback on the same PCHost and IG on one PC, both default to the same port; one bind fails (“Address in use”).Use 127.0.0.1 for both IPs and two different ports.
Block never executesInput block with framePerMS: 0.Use -1.

4. What the driver does with CIGI packets

5. Other problems

SymptomCauseFix
IG shows no entity / the view does not moveCIGI version mismatch; IG still in Reset instead of Operate (the 3.3 helper sends IG Control with mode Reset); entity ID differs from the one the IG expects; wrong coordinates (latitude and longitude in degrees, altitude in metres, angles in degrees).Set the IG to the CIGI version the project sends; check the IG mode, entity ID and the units in the sending block.
Position jumps or lagsIG frame rate and host rate differ; the block is sent at a slower rate than the IG expects, or data arrives in bursts through a busy network / Wi-Fi.Send every frame at the IG's rate; use a wired, dedicated network; keep the host frame counter increasing by one.
Packets partially missing / large scenesThe datagram is larger than the network MTU (about 1472 bytes of UDP payload) and is fragmented; fragments are dropped by some switches / firewalls.Send fewer packets per datagram, or enable jumbo frames end to end.
Works on the bench, not in the labDifferent subnet or VLAN; router / firewall blocks UDP; broadcast / multicast not forwarded.Use a unicast address on the same subnet, or open the ports in the firewall between the subnets.
Message “Bind failed” after a restartThe previous CoreEngine process is still running (the port is held).End the old process (Task Manager) and start again.
Streams with "TCPSocketDriver" instead of UDPCIGI over TCP is not this driver; only CIGIDriver (UDP) decodes CIGI.See Socket Drivers UDP / TCP for the TCP fields and messages.
Raw datagrams can be recorded with the stream recorder for later replay, and the receive hooks let you validate or filter packets before they reach the blocks. Counters of every block are visible live in System Layout.