I fixed this issue.
If anyone else is looking for a solution you must add NAT static mapping with powershell:
Add-NetNatStaticMapping -NatName "NestedSwitch" -Protocol TCP -ExternalIPAddress 0.0.0.0 -InternalIPAddress 10.4.2.2 -InternalPort 1025 -ExternalPort 1025
"NestedSwitch" is the virtual switch which is created if you follow the MS article mentioned in the post above.