Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Protocol Port  RSS feed

 
mr_doer
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
How to write a computer program that takes the name of a protocol port and prints the port number
How to retrieve host name, address associated with a given host address
How to retrieve the address, name with given host name

Thanks,
Mr.Doer
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let me see if I understand, You want a program that you give say port# 21 and it returns 'ftp'. If this is the case, you'll have to develop one of your own.
To get the host name or IP of an address, you use the InetAddress class look over the documentation of this.
Please read the Naming Policy. It's really for your benifit. Periodically we do a book giveaway on a forum. Only those who post to that forum using a Proper name are entered. We are currently doing one on the XP forum. Also, if someone continually violates this, their posts can be ignored or dseleted.
Looking forward to your posts
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!