Connecting Windows Container to localhost of Host Machine

Hey, I’m a bit of a docker newbie and am having issues trying to figure this out. So I have a flexlm license server running on my windows host machine, with the license server listening on port 2009. What I’m trying to do is have my windows container be able to access localhost of my host VM so that it may checkout the license using port 2009. How would I go about achieving this? I’m building the container with docker-compose so I tried using extra_hosts and network_mode to try to make this work, but with no luck. I’m not too sure if I just did something wrong or if this isn’t the way to go about doing it. Also, sorry for not providing more context but I’m a bit lost as to what I’m doing here.