Some of the possible reason for this :-
- Make sure anonymous mode is OFF in the config file.
- Make sure your credentials and port number are correct. Port number will be 8081
- After making changes to your config, you need to restart the server for changes to be reflected.
- Make sure you created an empty directory (/usr/share/empty.)