Solved

Get IP address from Indy UDP server/client

Posted on 2004-09-14
3
1,604 Views
Last Modified: 2010-04-05
Hi!

I use instances of TIdUDPServer and TIdUDPClient for broadcasting. How can I get the IP address of the computer my application is running on? Supposed to be easy?

Thanks!
0
Comment
Question by:__alex
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
Ferruccio Accalai earned 250 total points
ID: 12052700
add to the uses clause IDStack;

Then anywhere call GStack.localaddress to obtain the local IP

see also a my previous answer to get a list of local addresses
http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_21117453.html#11968616

0
 
LVL 2

Author Comment

by:__alex
ID: 12052758
Great, enjoy the points!
0
 
LVL 22

Expert Comment

by:Ferruccio Accalai
ID: 12052780
Glad to have helped you :)

F68 ;-)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi OLE Error 8 95
Delphi Form ownership 4 73
Unique identifier on a terminal server (rdp) 4 46
update joined tables 2 31
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

867 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