How to port forward automatically in java?

后端 未结 3 1778
猫巷女王i
猫巷女王i 2020-12-18 10:41

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

3条回答
  •  再見小時候
    2020-12-18 11:34

    UPnP is your friend. It is a standardized method which allows automatically configuring routers to forward ports. There are a couple of different ways to do it. One package that supports UPnP under Java is Cling. http://4thline.org/projects/cling/

提交回复
热议问题