Create own ports

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jun 2005
Posts: 6
Reputation: nccliang is an unknown quantity at this point 
Solved Threads: 0
nccliang nccliang is offline Offline
Newbie Poster

Create own ports

 
0
  #1
Jun 16th, 2005
Hi guys , i was wondering how could you create your own UDP ports in java ? To be more specific , its like i have a communication application in java which i can use it to interact between different computers in LAN . However this application usto transmit data . Well , you first have to create your ports then later after opening the ports ,you will be able to make use of your method to send data . I hope this is clear enough
Sorry im weak in java
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Create own ports

 
0
  #2
Jun 16th, 2005
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).
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 2,108
Reputation: server_crash is on a distinguished road 
Solved Threads: 18
server_crash server_crash is offline Offline
Postaholic

Re: Create own ports

 
0
  #3
Jun 16th, 2005
There's like 65000 ports(if I remember correctly) to choose from, but remember to be careful about selecting one that doesn't have major process running.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC