• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Port numbers

 
Ranch Hand
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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..
 
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since I do not have any physical connection,how connection made to this port.

Could you clear my doubt???
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Using Java, a port is opened with the ServerSocket class, and accessed with the Socket class.
 
jacob deiter
Ranch Hand
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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) ?


 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
jacob deiter
Ranch Hand
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think it is ethernet
 
Joe Ess
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic