Accessing host machine from within docker container

no network nor hosts are needed. As @rohaq and @kevinpmcc mentioned,

for windows : docker.for.win.localhost
for mac : docker.for.mac.localhost

It works like a charm for me.