New networking connection code