Sorry folks, but this is today's problem:
(I have to ask or I won't work it out myself.)
For the sake of simplicity I'll use these two IP addresses.
1 - 101.191.12.63
2 - 1.129.19.42
1 - This is a land line. DSL - if you will.
2 - Is the fall back 4G link.
If the payload
is (or more so starts with) a 1.
I need to change it.
But it isn't that simple.
Here's what the scheme is:
(Given this is previously set at this point in time)
Ping my public IP address.
If it pings, all good.
If it doesn't ping:
Try to get public IP address.
Once got, set that as the ping address. This isn't a real IP address.
Then, that IP address will go down.
Once that goes down, repeat.
It doesn't seem to work as I have it now... Too complicated to post here.
It is over many flows and so on.
Yes, probably part of the problem.
I'm not exactly sure how the hand back works.
So when the DSL goes down, that IP address is pinged over and over. As it fails it sends a DOWN signal to code which asks for an updated IP address.
Once that is received, that address is pinged.
As it is a 4G address, once the DSL comes back up, the modem switched back and the process should repeat as it did when the DSL went down.
But it doesn't seem to work.
Can anyone make sense of what I have just said?
I'll try to get a better handle on what is happening myself.
Thanks in advance.