Enable to connect to the local host

I am not able to connect to the local host .from which i am also not able to run the server