Add an example with `net.connect`