How can I see the IP from which a post originated?

Hi, how to get this info? I have the same question as the topic author, this info would be very useful for security and legal reasons.