Having problem acessing domain on rocket locally

hi
i managed to install rocket chat on ubunto and can access to rocket locally by ip and externally.by domain that i bought and ip…but couldnt access rocket locally by domain and forward me to my irancell modem…
what can i do?does it have setings to define these?
thanks