Solved

Get IP address from Indy UDP server/client

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

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…
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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

803 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