Perhaps your friends are behind NAT or some other mechanism that shares IPs between several computers, and thus you can't connect to them. This mechanism is often present in certain broadband routers, for instance, and can often be bypassed or turned off.
I assume that you're not behind a firewall that blocks DCC?