Local host upload problems

I was wondering if somebody who’s managed to fix this could provide an example snippet from their hosts file along with their site name. @Zlash65 Zarrar has posted the solution for this a few times, but it’s not working for me and I’m not sure why.

I have multiple benches (but not running simultaneously) and only the newest (0.0.0.0:8005) seems work. I want to load a file into the bench that normally corresponds with 0.0.0.0:8002.

127.0.0.1	localhost
127.0.0.1:8002 pinoak.local:8002

Where pinoak.local is the name of my local site.

127.0.0.1	localhost
127.0.0.1 pinoak.local

This is correct way to add host in hosts file.

Now in your browser you use http://pinoak.local:8002

Thanks @Yogesh_Sharma! Apparently I was over-thinking it.