Not being able to access apache2 server from windows vm [solved]

I am not being able to access the server using the ip address of the kali machine in the windows vm . What could possibly be the reason behind that ?

Make sure you start apache2 in Kali using the following command:

service apache2 start

Then go to in the Windows machine.