Community discussions

Search found 8 matches

by craigthom
Mon Mar 30, 2015 4:19 pm
Forum: Beginner Basics
Topic: Dynamic DNS scripting and global variables
Replies: 10
Views: 1420

Re: Dynamic DNS scripting and global variables

And that script also uses a global variable to store the previous IP between executions of the script. I thought there might be some disadvantage to doing it this way, so I asked, but I think the only reason it isn't being used is because the script copied didn't do it this way. My suggestion doesn...
by craigthom
Mon Mar 30, 2015 2:31 pm
Forum: Beginner Basics
Topic: Dynamic DNS scripting and global variables
Replies: 10
Views: 1420

Re: Dynamic DNS scripting and global variables

I found this: http://mikrotikmacedonia.com/index.php/topic,6.0.html I use the same script, on my RB2011 and works great for NO-IP DDNS. :) And that script also uses a global variable to store the previous IP between executions of the script. It looks as if the answer to my question "why do it that ...
by craigthom
Mon Mar 30, 2015 7:48 am
Forum: Beginner Basics
Topic: Dynamic DNS scripting and global variables
Replies: 10
Views: 1420

Re:

You cannot get file into memory. And you need to compare your ip to something in order to know whether it has changed or not because you would be telling to your ddns service the same ip repeatedly so it will become banning you. I am comparing the current address, from "/IP cloud current-address", ...
by craigthom
Sun Mar 29, 2015 10:47 pm
Forum: Beginner Basics
Topic: Port forwarding IP-Cam (DCS-5222L)
Replies: 14
Views: 2540

Re: Port forwarding IP-Cam (DCS-5222L)

When I entering cactuscam.no-ip.org into the browser I come to the Mikrotik interface now. But only when I'm logged in my own network. From outside (smartphone) nothing comes. Did you make entries for both ports 80 and 443? Did you enter them exactly as shown? Are you sure the Web cam is still at t...
by craigthom
Sun Mar 29, 2015 6:28 pm
Forum: Beginner Basics
Topic: Port forwarding IP-Cam (DCS-5222L)
Replies: 14
Views: 2540

Re: Port forwarding IP-Cam (DCS-5222L)

Now it should be working. The camera should use uPnP to add the entries in the NAT section of the firewall. If you want to do it manually, you need to create a NAT entry like this for each port you want to forward. Keep in mind that your camera has a dynamic IP address, so, if it gets a different on...
by craigthom
Sun Mar 29, 2015 4:13 pm
Forum: Beginner Basics
Topic: Port forwarding IP-Cam (DCS-5222L)
Replies: 14
Views: 2540

Re: Port forwarding IP-Cam (DCS-5222L)

Have you tried turning on upnp port forwarding on your camera and making sure upnp is turned on in your router? The camera should create the NAT entries it needs by itself.

Otherwise I can check them when I'm at a computer.
by craigthom
Sun Mar 29, 2015 1:02 am
Forum: Scripting
Topic: Google Dynamic DNS update script
Replies: 4
Views: 4013

Re: Google Dynamic DNS update script

Here is my modification, which uses /ip cloud to get the current address, eliminates the global variable for for the previous address by using :resolve, and captures and logs the results from Google. # Variables # Username and password are the long cryptic ones Google Domains provides, # not your re...
by craigthom
Sun Mar 29, 2015 12:52 am
Forum: Beginner Basics
Topic: Dynamic DNS scripting and global variables
Replies: 10
Views: 1420

Dynamic DNS scripting and global variables

I am brand new to RouterOS, so forgive me if this is a silly question. All the example scripts I've seen to update dynamic DNS services use a global variable to store the previous IP address to compare to the new one. Is there a reason this is done instead of using :resolve "hostname"? I guess my ma...