script to detect IP Address of server.