Hello @Hugo_Lol
You might find it helpful to review how to set up port forwarding between a host and a VM, for example:
https://www.howtogeek.com/122641/how-to-forward-ports-to-a-virtual-machine-and-use-it-as-a-server/
Another example:
Maybe you can use these examples to give you an idea how to get started solving this?
Hope this helps.