Set up code for contact with remote server