multidomain on single database and code

Hello ...
i am looking for on same code ,Same database multiple domain allow .
Currently i got below message.
"Sorry Login From different domain not permitted"

I try using elgg multi site but in that separate database is created. so it is not useful to me.

Thanks