• 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

Send message between two machine on an intranet

 
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear JavaRanchers,

I have a requirement for my application, but I am not aware of any technology/technique to implement it


**REQUIREMENT**

There are two machines on an intranet, and I would like to send message from one machine to the other. Although I am aware of RMI and Socket programming, I dont wanna use them as they both require to start some program at the destination machine as well. In this case is there any other technique in which the message can be sent without having any program running at the destination machine



Sorry if my requirement creates some confusion, feel free to ask questions.

Could anyone please provide some input on it?

Kind regards,
Hardik Raja
 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hardik Raja wrote:

**REQUIREMENT**

There are two machines on an intranet, and I would like to send message from one machine to the other. Although I am aware of RMI and Socket programming, I dont wanna use them as they both require to start some program at the destination machine as well. In this case is there any other technique in which the message can be sent without having any program running at the destination machine




Then to whom you are sending the message ? BTW, what does the "sending a message" mean in your context ?
 
Marshal
Posts: 28263
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can't send a message from Machine A to Machine B unless Machine B is prepared to receive the message. This would require doing something to Machine B (such as starting a server to receive your messages). If you aren't allowed to change Machine B then you are forced to rely on existing services which are already present there. So have a look and see what you've got available.
 
Hardik Raja
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Vijitha Kumara,

Many thanks for your reply.

Then to whom you are sending the message ?



The message is to sent to another machine in the network, The start machine has the IP address of the destination machine.


BTW, what does the "sending a message" mean in your context ?



Sending message means a text string(message) is sent from start machine which would be displayed in a window at the destination machine.
Eg. Imagine using the net send command in windows, where you send a message and that message is displayed at the destination machine.

Kind regards,
Hardik
 
Hardik Raja
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Paul,

Many Thanks for your reply.

You can't send a message from Machine A to Machine B unless Machine B is prepared to receive the message. This would require doing something to Machine B (such as starting a server to receive your messages). If you aren't allowed to change Machine B then you are forced to rely on existing services which are already present there. So have a look and see what you've got available.



Yeah exactly, I totally agree with you on this.
Eg. Imagine using the net send command in windows, where you send a message and that message is displayed at the destination machine, it works because there is a service running at the destination machine waiting for requests.

In such a case, are you aware of any underlying service running at the destination machine?
In my case the start machine platform is Ubuntu(on which running JAVA desktop application will invoke the message to be sent) and the destination machine platform is Windows

Kind regards,
Hardik
 
reply
    Bookmark Topic Watch Topic
  • New Topic