Work from India on H4 EAD and get US salary?

Can I work from India on H4 EAD and get US salary if the employer approves it? Is there any limit on number of months?