Enable/Disable G4 WebControl via code?
Dries Kaspers
Posts: 142
Is is possible? Maybe using a send_command to the panel or something, i searched the software history but couldn't find anything.
0
Comments
the option to allow/disallow this is done via an amx msp16 keypad in the same room as the touchpanel.
have the master, tp and TCP/IP controlled equipment on it's own network (ie use a small router) then connect the router's WAN side to the building network. Make the necessary port forwards inside the router config for the master and TP.
between the router WAN port and the building network, insert a 2 port switch - we use an Allied Telesyn AT-FS203 http://www.alliedtelesyn.com/products/details.aspx?88 here to disable network sockets on Lecturns so if a user wants to conenct to the network, they have enable this through the TP.
Have the power for this switch controlled by a relay on the master so whenever access is granted by the user, the switch is powered!
If the suggestion to isolate the Netlinx network behind a router is used, the web control connections have to be created, See tn 669 where the command is described as being like:
SEND_COMMAND 0:1:0,'G4WC "Bedroom",12.5.139.15,5900,1'
to enable and suggests that:
SEND_COMMAND 0:1:0,'G4WC "Bedroom",12.5.139.15,5900,0'
would disable.
If I'm correct about how this works, it should be easy for the program to disable WAN-side web control acces.
I have tried this and multiple variations as it was my initial thought on how to enable/disable it, but it doesn't work.
Ok, I don't have a TP to try it out actual web control with, but, I just tried an experiment with an NI700 and it did what I expected it to do.
First, I have the NI700 behind its own router. The router forwards port 80 to the NI700.
I opened a Telnet session with the NI700 (through the router, though I don't think that's important) and entered:
send_command 0:1:0, 'G4WC "Ontario",192.168.1.99,5900,1'
192.168.1.99 is the IP address of the WAN port on the router.
When I access the NI700s web server at 192.168.1.99:80 under web control I see 'Ontario'
Then when I:
send_command 0:1:0, 'G4WC "Ontario",192.168.1.99,5900,0'
and refresh the webcontrol page, 'Ontario' is gone.
If I had a TP on the network with the NI700, its web control link would remain, but it wouldn't do anything because it would be for a non-resolvable IP address -- non-resolvable from the WAN side of the router, that is.
If someone had a web browser open and that browser was paged to "web control". the 'Ontario' link would not disappear when the disabling command was sent, and I think it would still work. And, an engaged web control session would not be shut down.
Again, this is all assuming that I understand what's going on -- not guaranteed, for sure.
Hi
I have a similar problem with my connection.
I applied service note 669 and the problem still. My router foward to NI-3000 trought port 1319 (I don't understand if I have to open on port 80 or 1319).
when I tried to connect via i.e., I get the netlinx page with the second panel name as I created earlier, but when I try to connect, I get the "Failed to connect to sever" error message.
I tried to connect with VNC Viewer and I get my panel directly
Why?
Any cue wil be appreciate