Socketcand is the canonical way for Linux machines to make locally connected CAN bus interfaces accessible to other machines.
To maximise compatibility with clients, only raw mode is supported.
# Python Example
Below is an example using the [python-can](https://python-can.readthedocs.io/en/stable/) library. It connects to a Gateway using socketcand and listens for frames on the bus.
Replace the `host` address with the address of the Gateway you wish to connect to.
```python
import can
bus = can.interface.Bus(interface='socketcand', host="169.254.13.14", port=29536, channel="can0")
try:
while True:
msg = bus.recv()
print(msg)
except KeyboardInterrupt:
pass
```