add localhost binding only support

add localhost binding only support