Go to Advanced WI-FI Settings. Then, click on Configure HTTP/Proxy. After you have done this, type the port number in the space provided and save the settings. The error will be fixed after you are done.