Enable registry hostnames with custom port number for push api call

I would like to be able to push images to private docker registry bound on custom port. 
For example: custom.index.io:4999/nahiluhmot/base2:latest