1. Forward from localhost (7374) to the guest (4444):

    VBoxManage modifyvm "MyCustomVM" --natpf1 "guestselenium,tcp,,7374,,4444"
  2. Connect to the guest using localhost:7374