connectPort should be int type