Solved

Get IP address from Indy UDP server/client

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…

829 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