I have set up a TeamCity Server and am currently in the progress of connecting it to a Bitbucket Repository.
When adding the connection I am required to setup OAuth to be able to add repositories. The instructions provided by the server are to add an OAuth consumer with the following parameters:
URL: http://<server-ip>:<server-port>
Callback URL: http://<server-ip>:<server-port>/oauth/bitbucket/
But I am unable to add the consumer in Bitbucket and always get the error "For HTTP protocols, the callback URL must be a loopback address.". I already tried different combinations with localhost and none worked so far. Changing the url and callback url both to localhost does work but the Server is unable to perform the authentication.