I want to write a plugin which listen a port with udp, but when I code it as normal( a thread and a udp socket), update it to plugins directory, and restart openfire, the openfire does not listen to port 5222 and 5223,
I don’t know what should I do, maybe there is an API about socket. I find classes like SocketAcceptor and ConntectionManagerImp, but I’m not sure how to use them.
I want to write a soft to talk p2p, but I don’t know how to get public ip within nat, so I write a plugin to get public ip and port and send them back.
You’re welcom to give me another solution.
Thanks a lot