How to make TorBrowser and console-run tor appear under the same IP address

Hi.

For my specific task, I need to make TorBrowser and console tor look as having the same IP address for a specific site.

If I run curl -i -L http://check.torproject.org in bash, I see

...  Congratulations. This browser is configured to use Tor.
    
  </h1>
  <p>Your IP address appears to be:  <strong>xxx.xxx.xxx.252</strong></p> ...

Simultaneously I click IP check on the Whonix Welcome Page in Torbrowser and see

Congratulations. This browser is configured to use Tor.

Your IP address appears to be: xxx.xxx.xx.126

These addressess are different every single time.
How to make them be the same?

P.S. Another issue I have is that curl -i -L http://check.torproject.org shows differernt IP addresses every time I run it. Even if run it every 5 seconds it prints out different IP!

How to make console tor hold on the same IP at least a few minutes?

IP selection is done by Tor feature. Whonix does not change that mechanism.

This is a Tor specific question. Whonix does not interfere with this.

Therefore this question is mostly unspecific to Whonix.

You’re attempting to use Tor in a non-standard, advanced way. The only way to accomplish this is to become an advanced Tor user.

Only chance is to resolve as per https://www.whonix.org/wiki/Free_Support_Principle.

This is probably possible using the Tor control protocol / control port, which can be accessed from Whonix too.

But the actual Tor control commands are out of scope for Whonix support.