added the get ip function and the ip table add