Solved

Get IP address from Indy UDP server/client

Posted on 2004-09-14
3
1,587 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

707 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

16 Experts available now in Live!

Get 1:1 Help Now