add method to get local socket address