Tokyo Homeless and His PC

I have no idea how he gets power and the internet connection, because plugging to power sockets in public space is not so safe in Japan.