Hi and WELCOME to LQ! I faced the same problem. One easy solution is to add a 2nd *bridged* network.
here (1st, poweroff guest; in Network, Adapter 2, Enable as bridged; default Name ok)
or
this
Best wishes! Enjoy... (when you mark this "Solved", post exactly how, to help others!)
p.s.
Also, (esp. if you had included virtualbox in your title, and maybe host to guest)
check the "Similar Threads" at the *bottom* of (all!) posts here.
There's also the "Newbie" forum. (maybe include details like 'distro')
web-searches returned lots of other ways (many obscure/confusing),
so picking the 'right' keywords is the 'secret/trick/key'