Ftp works only with wifi

hi koders, i’m having problems with uploading an image to an ftp folder, the upload works without problems only if connected to a wifi, but it doesn’t work if connected to the mobile network, and i don’t know how to solve