Well, legally you can do it but the chances of H1B approval with a home address are really low. Your end client will have to provide a lot of paperwork supporting your home office location. If you are working as a full-time employee (FTE) for an end client, things are a bit easy as the justification for working from home is easy, with no consulting company involved.