Method createUser not found 404

hello I am using react native with meteor.
When I excute the following code on local meteor server there is no problem.

Accounts.createUser({username:‘olla’,password:‘123’},(err)=>{
if(err)
{
alert(err.message)
}
else
alert(Meteor.userId())
})

but when I deploy to galaxy server I got this error
method createUser not found 404
any help please

Did you connect to the meteor server through your react native app?

Meteor.connect(“ws://yourwebsite.com/websocket”);