get local ip address correctly in smart player