My computer gets dynamic ip address from a router.

I want to setup servers in Virtualbox and connect to them from the host using ssh and share files between them with samba.

Is it possible to do this with dynamic ip address or would I need a static ip address.