Login user on local radius using ast.net mvc and c#

Hi to everybody,

I have read a lot of documentation but couldn’t find out the correct information.

The problem is that I need to login users on my hotspot after a procedure (using walled garden) and radius (local) on User Manager.
Everything run ok when I go in a terminal winbox on the rb951 and write:
/ip hotspot active login user=Admin password=xxxxxx mac-address=xx:xx:xx:xx:xx:xx ip=y.y.y.y

BUT how can I do the login from external software ast.net mvc and c# ?
As far as the user is already out of the router, how can I find information such as mac, ip and what else it need?
The public IP address of the RB951 is not static. Is this a problem? How can I reach the RB without a static ip?

Thanks a lot for the help.

Hi,

you can use the Cloud-feature of the router to access despite the dynamic IP address, it can be found at

/ip cloud

There is an API for the router, cf. http://wiki.mikrotik.com/wiki/Manual:API and http://wiki.mikrotik.com/wiki/API_in_C_Sharp. You can use this from within your C# program.

Regards,

Wolfgang

Thanks a lot, Wolfgang
I’ll try

Andrea