Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can we send message from Computer1 to Computer2 connected with LAN ?

Status
Not open for further replies.

AAnkit

Programmer
Feb 24, 2014
4
IN
Via VFP9 code, How can we send message from Computer1 to Computer2 connected with LAN ?
 
A simple way of doing this would be to store a file in a shared directory. Computer 1 writes the file. Computer 2 periodically polls the directory to check the presence of the file. The actual message (which can be a text string, a number, or whatever else you like) is stored in the file itself.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
using vfp, you can use the net send command. google that command in ms dos.

also, you can do what mike suggested.

also, you can have a table, and save to that table, and in the other machine, have a timer, or a grid that displays the table's message



Ez Logic
Michigan
 
More general:


Some of the mechanisms work on a single computer only, some via network. A file really is the simplest exchange of data, of course. But it means messages are not pushed to the remote destination client, you have to pull messages with some (the same) application knowing where to look for incoming messages. That's no problem if you develop both the send and receive code (and display).

Some mechanisms need to open certain ports on the firewall, which of course also is a risc. You may communicate via sockets (TCP/IP), the same browsers use for the http protocol, which would certainly work on the http port 80, that is open in firewalls anyway. Still that needs a socket configured as listener on each PC you might want to address. Actually there is nothing you can send remote without having privileges on the remote side or something actively listening on the remote PC. Otherwise remote interprocess communication could be misused for any malicious purpose, obviously.

Bye, Olaf.
 
Are you sending a message to the computer, or to the USER at that computer?

If it's the user, email might work too.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top