1. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

KAG [Solved] Ability to change API port from 443 to ??

Discussion in 'Server Help' started by enjoyaol, Dec 25, 2014.

  1. enjoyaol

    enjoyaol Shark Slayer

    Messages:
    13
    Hi,

    I am having success running kagdedi on my NAS. However, I don't want to forward port 80 nor 443 to the NAS as it's already used for something else.

    I see it's hardcoded (cf wiki https://wiki.kag2d.com/wiki/Server) but maybe the wiki isn't up to date and there is a way, now, to change that ? I just want the ability to change these ports (80&443)

    Thank you
    Riri
     
  2. Geti

    Geti Please avoid PMing me (poke a mod instead) THD Team Administrator Global Moderator

    Messages:
    3,730
    Not likely to happen, 443 is used as it's the official port for https connections, just as 80 is the official port for http connections. You could try talking with jrgp on IRC about how he circumvents any possible issues here but afaik there shouldn't be issues with outgoing https.
     
  3. enjoyaol

    enjoyaol Shark Slayer

    Messages:
    13
    Well, why does kagdedi uses these ports anyway ? I mean.. those are already assigned to HTTP and HTTPS.
    I don't see why it could not be set by configuration file, as I guess the server browser could just support this, no ?
     
  4. Asu

    Asu THD Team THD Team Forum Moderator

    Messages:
    1,580
    Because the API uses HTTP requests iirc
     
  5. enjoyaol

    enjoyaol Shark Slayer

    Messages:
    13
    Well, obviously. But by your thinking, then Kagdedi is a web server ?
     
  6. Asu

    Asu THD Team THD Team Forum Moderator

    Messages:
    1,580
    I never said that, I've just said the API gets the server information using HTTP.
     
  7. Geti

    Geti Please avoid PMing me (poke a mod instead) THD Team Administrator Global Moderator

    Messages:
    3,730
    Connections should all be outbound as far as kagdedi is concerned.
    As I said, talk with jrgp about resolving it (you can find him in #kag on quakenet most hours of most days).
    If he doesn't have a solution on your end get him to suggest one to us, as this is the first we've heard of issues with collisions on these ports.
     
  8. jrgp

    jrgp THD Team THD Team Administrator Global Moderator

    Messages:
    75
    https://wiki.kag2d.com/wiki/Server#Ports is very misleading

    You do not need to forward 80 or 443. You can stop reading here.

    What that table is supposed to say is KAGdedi needs to be able to make outgoing connections on those two ports for lobby access, not accept connections to them.

    This means you would only need to take action regarding those two ports if you are using a restrictive outgoing firewall, in which case you would need to white list those ports.