fixing socket listening only for local network