Error : couldn't connect to server 127.0.0.1:27017, connection attempt failed : Socket Exception

No sorry I just changed the port to try out some tests. the actual port is 27017. And even when I specify port 1687 it gives me the same error