Thanks guys. Using ctcp is probably the best answer. However $longip didn't give me anything. $ip works fine though. Thanks again.