I know that bit torrent clients use automatic port forwarding (Port forwarding with having to configure the router) so that they can connect to each other. I want the users
UPnP protocol can handle the automatic port forwarding.
Try this library (Cling - Java/Android UPnP library and tools):
http://4thline.org/projects/cling/