Getting Error while publishing: Could not connect to publishing server, please check publishing server configuration.

Getting Error while publishing: Whenever I edit a page and push the publish button it gives me this error:

Could not connect to publishing server, please check publishing server configuration.

 Anyone knows how to fix this???