Defining IP address and privacy error

ttonk81
Posts: 1
Joined: Wed Sep 07, 2022 12:47 am

Defining IP address and privacy error

Post by ttonk81 »

I'm running FS22 on a dedicated machine with multiple IP addresses. Currently, it's using the primary IP, how do I set it to use a secondary IP?

Also when accessing the FS22 control panel I get a privacy error when trying to connect via https.
Do I need to make changes to the dedicatedServer.xml?
I have a cert.pem and pk.pem file but no a.pem or b.pem

Code: Select all

        <tls port="8443" active="true">
            <certificate>cert.pem</certificate>
            <privatekey>pk.pem</privatekey>
            <intermediateCertificates>
                <certificate>a.pem</certificate>
                <certificate>b.pem</certificate>
            </intermediateCertificates>
        </tls>
Image
tp-ops
Posts: 2
Joined: Thu Oct 06, 2022 11:37 am

Re: Defining IP address and privacy error

Post by tp-ops »

a.pem and/or b.pem should be the CA certificates of your CA. Some like GoDaddy, CloudFlare, Let's Encrypt.
You should be able to download these from your CA. When you place it in de same folder as where the dedicatedserver.exe file and point to it in the XML file then youre site should be private.

So cert.pem is the certificate with your public key
pk.pem (of .key often) is the certificate with your private key (Only your server should be able to access this file!!!)

a.pem CA certificate
b.pem another CA certificate when necessary

To use your second IP address I can't help you. I was thinking you simply can give the second IP in de browser (when using internally in your network to exclude errors with port forwarding) but I've tested that within my server but no connection is made. Maybe somewhere is hardcoded to use the primary IP address.
Post Reply