Remote C-Gate and Port number

Discussion in 'C-Bus Toolkit and C-Gate Software' started by znelbok, Sep 26, 2017.

  1. znelbok

    znelbok

    Joined:
    Aug 3, 2004
    Messages:
    1,151
    Likes Received:
    17
    I am trying to connect to a remote C-Gate and I have to change the default port number in toolkit from 20123 to 20023.

    Problem is that the dialog box where the IP details are entered does not allow me to change the port number so I can not make a connection.

    Is this an oversight or am I missing something?
     
    znelbok, Sep 26, 2017
    #1
  2. znelbok

    DarylMc

    Joined:
    Mar 24, 2006
    Messages:
    1,308
    Likes Received:
    49
    Location:
    Cleveland, QLD, Australia
    Hi Mick
    What are you connecting to?
    When I set up a remote CGate connection for Toolkit to raspberry pi I just left it as 20123.

    Did you add the IP address of the machine you are on to the access.txt file on the remote CGate machine?
     
    Last edited by a moderator: Sep 26, 2017
    DarylMc, Sep 26, 2017
    #2
  3. znelbok

    daniel C-Busser Moderator

    Joined:
    Jul 26, 2004
    Messages:
    766
    Likes Received:
    20
    Location:
    Adelaide
    Hi znelbok,

    Port 20023 is for unencrypted ("telnet style") connections such as when using the "Connect to C-Gate" shortcut via the Windows Start Menu. Port 20123 is for Toolkit's encrypted connection.

    It's true that technically you can change these to new numbers in C-Gate's config, but as you've noticed the port 20123 is hardcoded in Toolkit to keep it simple for users.

    Trying to make Toolkit connect to 20023 wouldn't work anyway as C-Gate expects plain-text on that port. I'm not entirely sure why you're trying to do that - can you give more details?
     
    daniel, Sep 27, 2017
    #3
  4. znelbok

    znelbok

    Joined:
    Aug 3, 2004
    Messages:
    1,151
    Likes Received:
    17
    I went back into toolkit today to make a remote connection and the port was 20123.

    No connection so I connected remotely to the router and its port 20023 that is forwarded - so I can only assume that 20023 was what I had been using previously and worked - or the gremlins got in and changed the ports on me.

    Logged in on local network via putty on port 20023 so its definitely 20023

    The question is still valid though - I should be able to change the port number away from the default - how do i do it
     
    Last edited by a moderator: Sep 27, 2017
    znelbok, Sep 27, 2017
    #4
  5. znelbok

    DarylMc

    Joined:
    Mar 24, 2006
    Messages:
    1,308
    Likes Received:
    49
    Location:
    Cleveland, QLD, Australia
    I am new to using remote CGate so I can't say if things have changed.

    In C:\Clipsal\C-Gate2
    CGate manual PDF
    Search 20123

    CGate configuration file
    secure.port-base

    edit
    that is the manual within my current version of CGate 2.11.1
    Oh but you want to change Toolkit?
    I don't know.
     
    Last edited by a moderator: Sep 27, 2017
    DarylMc, Sep 27, 2017
    #5
  6. znelbok

    DarylMc

    Joined:
    Mar 24, 2006
    Messages:
    1,308
    Likes Received:
    49
    Location:
    Cleveland, QLD, Australia
    DarylMc, Sep 27, 2017
    #6
  7. znelbok

    daniel C-Busser Moderator

    Joined:
    Jul 26, 2004
    Messages:
    766
    Likes Received:
    20
    Location:
    Adelaide
    Hi Mick, I'm surprised it was working before. You'll need to forward both those ports (and probably more).

    Here's a list I've pulled out of the manuals:

    Code:
    Port    Application & Purpose                            Type 
    8080    ServerX - web server                             TCP, bi-directional
    8344    PICED - C-Touch Colour Transfer Utility          UDP, bi-directional
    20023   C-Gate - Command port                            TCP, bi-directional
    20024   C-Gate - Event port                              TCP, read only
    20025   C-Gate - Load Change port                        TCP, read only
    20026   C-Gate - Config Change port                      TCP, read only
    20027   Homegate/Schedule Plus - ServerX interface       TCP, bi-directional
    20028   Homegate/Schedule Plus - ServerX interface       TCP, bi-directional
    20123   C-Gate - Secure Command port                     TCP, bi-directional
    
     
    daniel, Sep 29, 2017
    #7
  8. znelbok

    djtonyd

    Joined:
    Sep 25, 2018
    Messages:
    12
    Likes Received:
    1
    hi DarylMc im in the same boat, ive setup raspberry pi with c-gate for a client but i want to remotley access it offsite via internet to help fault find or do remote support if something happens. any clues ive port forward my raspberry pi IP internal side.
     
    djtonyd, May 3, 2023
    #8
  9. znelbok

    DarylMc

    Joined:
    Mar 24, 2006
    Messages:
    1,308
    Likes Received:
    49
    Location:
    Cleveland, QLD, Australia
    I’m sure there is many ways to do it.
    Rather than opening external ports on the router I’d do a remote assistance or teamviewer session to a pc on site initiated each time by the customer.
     
    DarylMc, May 3, 2023
    #9
    djtonyd likes this.
  10. znelbok

    djtonyd

    Joined:
    Sep 25, 2018
    Messages:
    12
    Likes Received:
    1
    yer ok, that's true.
    TeamViewer saves so much hassle these days :)
     
    djtonyd, May 3, 2023
    #10
  11. znelbok

    Mr Mark

    Joined:
    Jan 27, 2006
    Messages:
    322
    Likes Received:
    5
    Location:
    FNQ
    I've been using Tailscale for personal remote access and it's been flawless (and free!).

    https://tailscale.com/
     
    Mr Mark, May 5, 2023
    #11
    DarylMc likes this.
  12. znelbok

    djtonyd

    Joined:
    Sep 25, 2018
    Messages:
    12
    Likes Received:
    1
    interesting…. So the this is able to install on raspberry pi? And windows and bridge together to create a vpn to trick the toolkit thinking it’s on local network ?
     
    djtonyd, May 5, 2023
    #12
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.