fix security problem: now only allow 127.0.0.1 to connect