Seems to me you don't understand much about socket communications.
Programs don't create ports, they open sockets on ports. That's easy enough to do in Java, any book on network programming in Java will tell you how (and you'd better study such books as otherwise you're in for a load of performance and security problems no matter what programming language you use).
Reputation Points: 1658
Solved Threads: 331
duckman
Offline 7,719 posts
since Nov 2004