Change Listen UDPPort for IdUDPServer at run time

Posted on 2006-05-08
Last Modified: 2010-05-18
I set Indy UDPServer's DefaultPort at design time, but I would like to change it at run time.
I found that after I change DefaultPort at run time, the server still use the original Default port numer.


Above code cannot change the DefaultPort.

How should I do?

Question by:ysimon
    LVL 28

    Accepted Solution

    that is because there are already some bindings created (by default if you don't create some yourself). so the solutino would be:


    Author Comment

    It works great after adding Bindings.Clear.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Suggested Solutions

    Title # Comments Views Activity
    Firewall issues 6 80
    Delphi 10 Seattle Dataset Actions 5 64
    Thread safe  opinion 7 93
    delphi parse string to params 3 45
    This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
    Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now