create script to get ip