i run the server its said its working but when i open the browser and enter localhost:2000 and, its not working and in fairfox its says server not found, here is my code is could you fix it if there anything wrong with it? i am using Ubuntu. to start the server i typ. ./webserver 2000 webDir To verify your web server is running, type: ps -ef  | grep 2000 Solution A. Please note that there is no problem with the code. If there is a server that is listening to the code, there could be a problem with the client. If you are using a client and trying to run it, kindly ensure that you provide the server address and try to access because providing a local host address means that you are trying to access data on the same system itself where there is no software installed and running or where there is no linkup to the server. However, if sockets are used for accessing the data,kindly ensure that sockets have to be opened and closed on both the client and the server for accessing information. You could also check if the port is open with the firewall by following these steps: sudo ufw status If the status show active and is allowed to listen from anywhere, it means that the server is listening alright on the port. If the status is not active,try restarting the firewall as follows: sudo ufw disable Also, check the connection using netstat : And check if you can get wget alright to ensure that there is no problem with the local host : The connection status should be OK in this case. You can also try checking using nmap option to find out the housts which are up and the services they are offering If you have created a node based server, please ensure that there is a command stating listen(portname,\'IP/hostname\') to listen(portname,\'0.0.0.0\'). .