Mounting Cognex camera to Ur5

I mounted Cognex camera directly to Ur5 by removing end effector. May I know how I can find TCP and build communication between Cognex camera and Ur5e.