Following is excerpt from my vagrant file which exposes the opendj ports to my host machine :
```
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
# NOTE: This will enable public access to the opened port
# config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.network "forwarded_port", guest: 1636, host: 1636
config.vm.network "forwarded_port", guest: 4444, host: 4444
```