Removed random port assignment in bind, fixed double free error