Vote UpVote

Delphi and C++Builder DataSnap Server tip - displaying the TCP/IP and Port

Sip from the Firehose – I’ve always wanted to display the TCP/IP address and Port number on the caption of my Delphi and C++ DataSnap servers.  Here is the code that accomplishes this for my DataSnap Server form’s OnCreate event. For Delphi: 1) Add the IdStack unit to the uses clause in your form’s implementation section 2) Add the following code to your OnCreate event handler: Form1.Caption := 'Embarcadero DSServer Application. IP Addr: ' + GStack.LocalAddress + ' Port: ' + IntToStr(DSTCPServerTransport1.Port); For C++Builder: 1) Add #include <IdStack.hpp> near the top of the form’s ...
Favorite? Off-Topic? David Intersimone @ 2012-07-23 23:11


Visits: 521
Votes: 0
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)