Japan is notorious for its dearth of free wifi access points. Recently, several free options have become available. The latest option is from JR East. Use of the service requires registering you email address. Doing so gives three hours of free wifi access. Reentering your credentials will give you more time.
There is no security, so connect to the access point, then open your web browser and follow the instructions.