If your friend wants your IP, he/she can get it in much simpler ways. Example: every time you send an email, your IP address is attached to it. However, just from knowing your IP, they will not be able to simply hack you unless your system is inherently insecure, which is no the case for any computer running Windows.
Basically, don't worry about it. Your friend is not trying t hack you.