This is how I map machine named "xp" 15786 TCP and UDP port to host TCP and UDP port
By doing this, I could use bitcomet now.
VBoxManage setextradata "xp" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/bttcp/HostPort" 15786
VBoxManage setextradata "xp" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/bttcp/GuestPort" 15786
VBoxManage setextradata "xp" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/bttcp/Protocol" TCP
VBoxManage setextradata "xp" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/btudp/HostPort" 15786
VBoxManage setextradata "xp" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/btudp/GuestPort" 15786
VBoxManage setextradata "xp" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/btudp/Protocol" UDP
By doing this, I could use bitcomet now.
VBoxManage setextradata "xp" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/bttcp/HostPort" 15786
VBoxManage setextradata "xp" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/bttcp/GuestPort" 15786
VBoxManage setextradata "xp" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/bttcp/Protocol" TCP
VBoxManage setextradata "xp" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/btudp/HostPort" 15786
VBoxManage setextradata "xp" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/btudp/GuestPort" 15786
VBoxManage setextradata "xp" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/btudp/Protocol" UDP