MyBB Community Forums

Full Version: How to automatically set forum URL
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi
I am new in mybb
I'm installing mybb on CentOS in VirtualBox with my laptop.
One question is, how should I set the forum URL to automatically grab the IP?
Because I may be connected to different networks with my laptop, the IP will change accordingly.
For example I am on a network, the IP is 192.168.1.123
But if I go out or change the network, the IP will be 192.168.3.321

I know that in mediawiki it can be set to
$wgServer = "http://" . $_SERVER["SERVER_NAME"];
But I don't know how to set in mybb. Does mybb have similar settings?

Thanks!
I'd use localhost OR 127.0.0.1.
It's not designed to have a dynamic URL, it's a single static setting. I'm not sure what the use case is for how it's set up, but it would be easier to ensure it will have a static IP, especially if it's going to be accessed by others.
(2022-07-26, 01:42 PM)nixer55 Wrote: [ -> ]I'd use localhost OR 127.0.0.1.

I forgot to mention that because the intranet can be connected, it is not possible to set only localhost

thanks for your reply Big Grin