NetTalk Central

Author Topic: Opening a file in another pc from main server application  (Read 5495 times)

ntnewbies

  • Full Member
  • ***
  • Posts: 184
    • View Profile
    • Email
Opening a file in another pc from main server application
« on: July 29, 2014, 03:59:01 AM »
Hello nettalkers,
a server application need to send a trigger to a selected pc in LAN, which in turn will open a flash file in that selected pc. Can i do this task using nettalk? if yes, what example available for me to proceed.

To simplify my request, below is the gist of what i am asking:

MAIN PC - Server.exe will have a window that have 12 button. When i press button 1, then it will open a swf file in PC 1 in LAN. If i press button 2, then it will open another swf file in PC 2.

please guide. thanks

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Opening a file in another pc from main server application
« Reply #1 on: July 29, 2014, 04:41:42 AM »
It's on a LAN so I would use NetAuto.

A really simple object, like NetAutoClose is probably a good place to start.

Basically, the "other machines" will all be NetAutoServer's and the "server" machine will be the netAutoClient. (clients initiate communications with servers.)

On the server you press a button it sends a command to a machine.

The other machine gets the message and "does something".
In your case you want to display a SWF - presumably inside a browser control. You can use File Explorer to display SWF files. (NetTalk is not a browser control so doesn't help you actually display the SWF.)

cheers
Bruce

ntnewbies

  • Full Member
  • ***
  • Posts: 184
    • View Profile
    • Email
Re: Opening a file in another pc from main server application
« Reply #2 on: July 29, 2014, 09:36:13 PM »
Thanks bruce,
i shall try your suggestion.

best regards,
jason

ntnewbies

  • Full Member
  • ***
  • Posts: 184
    • View Profile
    • Email
Re: Opening a file in another pc from main server application
« Reply #3 on: September 17, 2014, 05:17:43 AM »
bruce,
 i have tried your suggestion. my server which use NetClient able to send a message. when i check the command prompt, netstat: it shows 192.168.1.135:2376  established.
however in my client pc, when i check the netstat, there is no foreign ip address shown.

sometimes, the client pc did receive the signal. I see inconsistency.
what seems to be the problem?

jason


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Opening a file in another pc from main server application
« Reply #4 on: September 17, 2014, 08:48:26 PM »
Hi Jason,

we did a number of webinars on ClarionLive during the last couple months on NetAuto, so that's a great place to start with understanding how NetAuto works, and how you can use it.

Unfortunately without an example of what you've done it's impossible to comment on what your program is, or isn't, doing.

If I had to guess, the first thing I'd check on both ends is that the program is "excluded" from the firewall running on that machine.

cheers
Bruce