How to change the Port for the Webserver / cannot access webvisu

2019-06-14
2019-06-17
  • fabian.poettker - 2019-06-14

    Hey,

    I'm using CODESYS V3.5 SP14.
    I created a WebVisu with some visualizations and downloaded it on the CODESYS Control Win V3.
    When I try to access the homepage after starting the soft PLC I get the error message "cannot open document".
    I already checked if the IP is correct and the name of the .htm file in the WebVisu settings.

    I tryed to change the port (maybe there is another webserver running on the computer) in the CODESYSControl.cfg with

    [CmpWebServer]
    WebServerPortNr=9090
    

    The PLC still starts the webserver with the default port.

    Does anyone have an idea what the problem here is and how I can change the port?

    Thank you for your help!

    Fabian

    IMG: Error.PNG

     
  • eschwellinger

    eschwellinger - 2019-06-14

    Should work.. which plc is it?

     
  • fabian.poettker - 2019-06-14

    It's the CODESYS Control Win V3 - x64 Version 3.5.14.0.

    Any Idea why the port doesn't change after editing the .cfg file?

     
  • eschwellinger

    eschwellinger - 2019-06-14

    Hi,
    C:\ProgramData\Codesys....
    In this location the Configfile is stored.

    BR
    Edwin

     
  • fabian.poettker - 2019-06-17

    Thank you very much!
    I changed the .cfg file in the wrong path (C:\ProgramFiles\Codesys not ProgramData).

    Now it's working

     

Log in to post a comment.