• 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

How to block the port

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Urgent:
I want to communicate with 5 RMI Clients. However the communication will be done using non-standard port: 11088. I want to do one test over here. I want to block a port for one RMI Client. Could you please tell how to block port for one RMI Client.
Also could you please tell, is there any command which tells the port is already in use. (How to check whether any specific port is already in use). Please if you know
Thanks in advance.
 
Bartender
Posts: 1638
IntelliJ IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not too sure whether i understood your question.
What is it that "communicate with a client" means? Typically, a server does not need to know about clients. This will defeat the entire purpose of making a server!
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You could try to open a java.net.ServerSocket on that port. If an IOException is thrown it is probably because that port is already in use.

Bill
reply
    Bookmark Topic Watch Topic
  • New Topic