If you have an issue where you cannot save proxy settings for a WiFi network try the below.
1. Hold down the WiFi network and select ‘Modify network’
2. Select ‘Show advanced options’
3. Scroll down to proxy and enter the hostname and port
4. If the save box is greyed out re-enter the password
Tested with Android 5.0