Don't know if there is a Starbucks in Otaru, but Starbucks in Japan does now offer free wifi. The catch is that you have to register for it ahead of time, and that requires Internet access. There is for sure a Starbucks in Hakodate near the port (within easy walking distance) so I am going to go ahead and register.