Checking if internet is on or not

Hey guys!

So i’m stuck in a part where I don’t even imagine what to do. The thing is, that I have written a UI that scrappes data with given url’s from web page, pastes the info to an excel file and goes on with 5k+ urls. My main problem now is that my ui is connected with a ip changer, which changes the ip from time to time. When he changes the ip, there is a time where there is no internet, and then the ui crashes. Is there a way for me to indicate that the internet is down for a moment, the ui stops his activities until the internet comes back up and he proceeds to do what he is told to?
Here is the outline of the UI:

Thanks in advance! :slight_smile:

Hello @Povilas_Jonikas
Try this “System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable()"
If no network it shows false and net-connected it shows “true”.

If the condition is False do activity in the loop if its true process will continue.
use Flow decision and enter this conditionSystem.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable()


Hi Gokul,

Thanks a lot for the response, and in advance I’m sorry to bother you, but is there a chance that you could show to me how it’s done? It’s to complicated for me if im being honest and I don’t have a clue how to do it. Is it possible for you to somehow sketch the steps out on the outline of my ui photo that I have attached in this thread or even give me a live example outline of the procces?


please check this, you may got idea

1 Like

Hello @Povilas_Jonikas

Please refer to the below post. You can use the workflow in it.

1 Like

Thanks Gokul for the responses, I appreciate it a lot.

I think I designed the flowchart with you’r help, but not when it comes to it, the ui just stops running. I dont know whats wrong, no errpor, nothing, just ended. This thing is a bit to confusing for me, but I want to learn extremely hard.
What the outline looks like now:
Inside of the flowchart:

The thing is, that I dont know where to put the flowchart. I’ll attach the uipath file that im writing right now, maybe it will help you help me better.
Universalus scrapperis gatovas.xaml (30.9 KB)

Thanks for the response Rahul,

I tried doing it by the thread you attached, but I just cant figure out where to put the things needed. If ill put the activity that a guy there attached that is the solution, will it loop for every code?

@Povilas_Jonikas Please Use the FlowChart Before Open browser, If Internet available then process will start from open browser, otherwise the process will on loop

1 Like

@Gokul_Jayakumar You mean it like that?

I’ve tried, but the continue button goes on error, says he needs to be in a loop.

Ok i figured it out, but then another problem occurs, maybe you can help?
Ive done it like this:

But now when it gets to the flowchart, it doesnt proceed, i dont get any errors whatsoever, but it just doesn’t go on

@Povilas_Jonikas , If internet connection is active it will go on automatically.

@Povilas_Jonikas , if you found the solution for the internet issue, then mark my answer as a solution and create a new Question. It will help someone have the same issues. So kindly open a new question Topic.

Hi @Gokul_Jayakumar, sorry for the late response.

You see, when I start the ui, when he goes to the flowchart, he stops, even tho I have internet. It just stops proceeding and doesn’t show no errors. Ill attach some screenshots of the flowchart, maybe you’ll find something thats wrong. I can even attatch the file of the ui.

@Povilas_Jonikas , What activity You gave if its True?

I’ve put the continue button if its true

1 Like

@Povilas_Jonikas , It skips Your Loop operation, So delete it and Give some log message if you need or leave it as empty on the true side

In the flow decision condition i’ve inserted this code “System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable()”
In log message:

The whole flowchart is in “for each row in data table”, because the continue button in flowchart needs to be in some kind of a loop. When I start the ui, it gets stuck on the flowchart and just does nothing, even tho I have internet connection
This is the UI that im working and struggling with:
uni padarytas per loptop.xaml (20.0 KB)

1 Like

Please remove Continue button and check the process, Because it will skip ur loop.

So I’ve checked, and now I get the point. The thing is, that my internet can turn off at any time, so it wont always work. But I’ve put a retry scope activity in the place where the ui uses internet and it does it’s job, but im still not satisfied, because it takes longer time to process.

@Povilas_Jonikas If You found a solution for Internet issues, please mark my answer as a solution