Add client/host connection code.