You can use the SP Dashboard to register redirect URIs. There are some restrictions regarding redirect URIs.
We currently support the https:// scheme, and a custom redirect URI scheme. The custom URL scheme is always a reverse of your clientID.
Please note that there is currently a bug in the SP Dashboard that prevents you from using a custom URL scheme. You can contact support in case you need it.
Ip addresses cannot be used in redirect URLs, unless it's 127.0.0.1 or [::1]
In cases when you are developing, or when you have a native app, we support localhost redirect URLs. Since this traffic never leaves the host machine, the http:// scheme is allowed here.
You may use http://127.0.0.1 or the ipv6 equivalent, http://[::1]. Port numbers are allowed too.