This week's book giveaways are in the Scala and Android forums.
We're giving away four copies each of Machine Learning Systems: Designs that scale and Xamarin in Action: Creating native cross-platform mobile apps and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

auto-find telnet server  RSS feed

 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
is there a way to auto-find a telnet server on a network ??

Suppose there is a server waiting on a port on a unknown IP address ...

I would like my app to explore network obtaing ip and port of this server, without having to set it manually.


thanks !
 
Saloon Keeper
Posts: 4475
112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not knowing the IP address would be very unusual. Something like Bonjour might make that possible, but Telnet has really fallen out of favor due to its unsecured nature. Mind telling us a bit about the use case?
 
simone giusti
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tim Moores wrote:Not knowing the IP address would be very unusual. Something like Bonjour might make that possible, but Telnet has really fallen out of favor due to its unsecured nature. Mind telling us a bit about the use case?



I am programming a java app to remotely control a desktop software.
This software acts a server and my app is the client.
At the moment, I manually insert IP and port in app’s settings.
It would be better that app could find automatically these informations looking for software's inside server.
Would you help me suggesting a way to do that ??

Many thanks in advance.
 
Saloon Keeper
Posts: 1929
239
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

simone giusti wrote:It would be better that app could find automatically these informations looking for software's inside server.


It would be better to use some kind of announcement/discovery mechanism (SSDP is one of them) where your application advertises the services that it provides.  When the client starts-up, it listens for the advertisements to discover the application server(s) which offer the service(s) it needs.
 
Sheriff
Posts: 23506
47
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

simone giusti wrote:It would be better that app could find automatically these informations looking for software's inside server.



Really? If the Telnet server moved around your network and its IP address kept changing, then yes, it might be better. But most people don't set up networks where that sort of thing happens. Usually they put a Telnet server on one machine and then just leave it there.
 
grapes are vegan food pellets. Eat this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!