is it necessary to stay connected to internet it could be a basic question for you guys, but i'm new in this.

is it necessary to stay connected to internet while doing solo-mining ?

is there any method to keep mining without permanent internet connection (i mean offline mining)?

thatnk's
You need to be online because mining is sort of like a mathematical race: whoever finds the hash of the next block (with value less than the current target) wins. And in order to prove that you found this value before anybody else, you need to be online in order to broadcast it to other users.