basic JS-side automatic port binding. does not handle potential conflicts with ephemeral port on CC3k side, cannot find info on that range