Simple. First and foremost make your your android device and computer is connected on thee same network.e.g router Open command prompt by windows+R and search for cmd then open. On the command type ipconfig and get the ipv4 address.
NB: Firewall blocks access of your computer along network so you need to turn off firewall for the network if either public or private.
How to turn off firewall Open control panel > System and security > windows firewall > on the left pane select turn on and off windows firewall. > Then select turn off windows firewall(not recommended)
You are done
then open your mobile device and run your ip address 192.168.1.xxx