File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes Port numbers Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "Port numbers" Watch "Port numbers" New topic
Author

Port numbers

jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
In computers generally It has Mouse port ,Keyboard port ,etc.Also Computer has Port number 8080,80,etc……….What are the difference between them. I read article says that port number ranging from 0 to 65535.It means computers should have 65535 ports(like mouse port ,keyboard port)


Is there any restrictions to create a new port EX:45652652..
Ryan Beckett
Ranch Hand

Joined: Feb 22, 2009
Posts: 192
There are hardware ports and virtual ports. The virtual ports are 0 - ~65000. They are just special blocks of memory that the application an uses for networked communication. Hardware ports are the electrical components that are responsible for I/O. You cannot specify a port number that great.
jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
Since I do not have any physical connection,how connection made to this port.

Could you clear my doubt???
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35241
    
    7
Using Java, a port is opened with the ServerSocket class, and accessed with the Socket class.


Android appsImageJ pluginsJava web charts
jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
Thank for your reply.

I explain my scenario.please suggest how to accomplish ?

I have 700 electronic counter device ,want to connect to a computer.Each device send a counter value asynchronously.Computer should receive all counters' input and update corresponding value in it.

1)How I connect all device to computer?
2)How to receive each counters' value and update its corresponding value (in computer) ?


Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8263

What is this "electronic counter device". What connectivity options does this device provide (ethernet, USB, wireless, tin can and string)? Does the vendor have any guidance on the use of their product?


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
I think it is ethernet
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8263

Joe Ess wrote:What is this "electronic counter device". Does the vendor have any guidance on the use of their product?


You really aren't giving us much in the way of useful information here.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Port numbers
 
Similar Threads
Difference between serverName and host name
mouse and keyboard input
NX: validation of the IP or HostName
mouse related
Directing mouse & keyboard input to a port