If it works with the hosted builder and the B4I certificate is properly trusted then it should work with the local builder as well. If it doesn't work then it is probably related to the network configuration.
Thanks Erel,The problem is solved.
In the past,desktop computer connected to the Internet via a network cable,and a USB portable router was plugged into desktop computer.My laptop computer and iphone accepted the wifi signal of the USB router.This is the wrong way,so it didn't work always.
Now,Directly I connect to the Internet via a network cable using a standard router,My laptop computer and iphone accepted the wifi signal of the standard router,wow it does work.