it can work, even though it is very simple
add the function which to get ip