Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Port numbers  RSS feed

 
Ranch Hand
Posts: 588
  • Mark post as helpful
  • send pies
  • 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
  • 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: 588
  • Mark post as helpful
  • send pies
  • 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: 42974
76
  • Mark post as helpful
  • send pies
  • 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: 588
  • Mark post as helpful
  • send pies
  • 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: 9551
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • 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: 588
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it is ethernet
 
Joe Ess
Bartender
Posts: 9551
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • 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.
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!