java - Android Application listens to TCP port -
i have figured out how check if port open or not in server.
however, facing issue how check numbers of other devices listening specific port.
my flow of application is:
first, application check if server's port open or not.
second, if port open, need check number of devices listening tcp port.
third, if port reach specific number, lets 20 devices listening tcp port, need application listen following port port availability.
can enlighten me case?
i have figured out how check if port open or not in server.
there never mystery that. try connect it.
however, facing issue how check numbers of other devices listening specific port.
the server listening port. devices connected it.
my flow of application that,
firstly, application check if server's port open or not.
in other words application connects port.
second, if port open, need check number of devices listening tcp port.
why?
third, if port reach specific number, lets 20 devices listening tcp port, need application listen following port port availability.
why?
i have around 3000 devices connecting port , limit of 20 example of limit specific number of device in port.
there no such thing 'limit specific number of device in port'. can have many thousands of simultaneous connections same tcp port. web servers 24 hours day.
i try avoid congestion or bad traffic having multiple ports availability devices.
using single port not cause congestion or 'bad traffic', , using multiple ports have used 1 wastes resources @ server.
there no point in this. based on serious misunderstanding of tcp.
Comments
Post a Comment