attacks – How does hacking WIFI and IP work?

Can anyone please explain in detail how does a hacker hack someone’s computer if they can have access to the WIFI system range (park their car near their home) but don’t have access to their actual computer? And also, once they get the IP address, how do they actually hack it without physical access to the computer? is that possible?