adb got stuck. not starting in terminal command

Try it with:

sudo adb start-server

Use your own password.

Opening port 5037 doesn't require privileged access, but there are some other flaky things with adb such as file/device permissions, etc. to which your own user account might not have access.