It seems you are trying to set your proxy to local machine address, and are not setting up correct proxy. Before applying proxy settings confirm correct address.
You can also try detecting proxy automatically.
You can also view http://www.techyv.com/questions/any-...-proxy-firefox for more information.
I hope it would be of some help.