Every device that has Bluetooth can be connected with BoAt Rockerz 510. So, yes you can connect it with Realme 5.