Mappview control client access dependent where they come from

Hy there.

I have there a situation where the mappview application can be accessed by a mobile phone using a browser.

Definition of situation:
The plc is connected to a local network. This also includes a wlan.
This plc is at a methane plant. In order to reduce distances we would allow to switch on and off some pumps by using a mobile phone with a browser which can open a client session.
So far so good. Up to here there is no problem.

Now we connect this LAN to WAN with gateways (sitemanager or lucom system) etc. so that a access from internet would be possible.

Is it possible to identify, where the access for a client session comes from. Here from LAN or from WAN (Internet)
What i want:
I would give automatically five full access to all devices which are part of the LAN. For those who are connected from Internet they need to have a login.

Are there any possibilities?

There was similar topic in the past.

but Im not sure how colleague really solved in the end :slight_smile:

Hi Raimund,

maybe you can define own visualizations for both use cases.
LAN HMI: needs no login
Mobile HMI: needs login

Using Redirect rules you can decide which HMI to load on client. Maybe using operating system or IP address of connected client.

Is this an option for you?

Sincerly Simon :slight_smile:

1 Like

So far so good.

After studiing the redirection rules i would try with ip adresses for type.

So when a new “LAN User or WLAN user” ( in this cases the mobiles) enters i could expect that those get a tcpip adress by a dhcp Server.

So i can be (in most cases) sure all the ip adresses within this address room are from LAN or WLAN –> from mobiles

Im not sure but when including a sitemanager into the LAN it has his access throug a gateway and in don´t know which ip adress will be assigned to him.

Does anybody know this? Also when there are multible accesses through a sitemanager

1 Like

Can’t say for sure without testing, but you can check this by testing and checking the client information from the mapp View diagnostic page.

Automation Help: mapp View Diagnostics - Client Information

Hello there,

is it possible to define the redirection settings by using a library?

Situation: I would put my software to different clients. Each one has probably different IP Adresses.

I don´t want to reconfig all the time the settings and have for each customer different projects although its the

same software.

To the best of my knowledge, there is no library, nor is there a possibility to set it dynamically. However, the configuration file is an XML, so you can create a prebuilt script, e.g., in Python, and create the file dynamically before you compile the project and create a new CF card.

Hello,

At least i´m used to build xml files e.g. arconfig and iomap by myself directly inside the application. In order to find

out the right syntax i found the xml files in temp folder and build them like it was neccessary. After creating them

i used a library to transform them in a *.br file

Up to now i haven´t found any xml file which seems to match. Do you know the name of this file in order to look inside?

When doing it that way, is it also neccessary to reboot?