Solved

Get the IP's list

Posted on 2004-03-24
6
237 Views
Last Modified: 2013-12-26
Hi!!

How can I get the IPs addresses in a machine than have more than one IP?
I was used some functions than I founded in the internet than use API calls and functions well, but only gives me one IP.
I'm connected to a LAN and to a MAN with the same machine. The IP than returns me the scripts than I downloaded is the IP from the LAN and I need both, the IP from the LAN and in some times the IP from the MAN.

Thanks in advance!
0
Comment
Question by:tsirakua
  • 4
  • 2
6 Comments
 
LVL 8

Expert Comment

by:Vikas_Dixit
ID: 10672096
You shold be able to get it from registry ...
just open regedit and do a find for the IP addresses that are defined for your PC....
and the use PB functions to get the registry value...........

--VIkas
0
 
LVL 8

Expert Comment

by:Vikas_Dixit
ID: 10672448
Pls refer this page : http://www.windowsitlibrary.com/Content/69/01/9.html

Regards,
Vikas
0
 
LVL 8

Expert Comment

by:Vikas_Dixit
ID: 10672457
0
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.

 
LVL 15

Expert Comment

by:namasi_navaretnam
ID: 10672458
Please see if these links help:

http://eric.aling.tripod.com/PB/tips/pbtip14.htm
http://www.experts-exchange.com/Programming/Programming_Languages/PowerBuilder/Q_20850468.html


FUNCTION boolean GetComputerNameA(ref string cname,ref long nbuf) LIBRARY "Kernel32.dll"

AND IN YOUR SCRIPT  use  this

string ls_compname
long ll_buf
ll_buf = 255
ls_compname = space(ll_buf)
GetComputerNameA(ls_compname, ll_buf)

Regards-
0
 
LVL 15

Accepted Solution

by:
namasi_navaretnam earned 150 total points
ID: 10672464
Please see if these links help:

http://eric.aling.tripod.com/PB/tips/pbtip14.htm
http://www.experts-exchange.com/Programming/Programming_Languages/PowerBuilder/Q_20850468.html


FUNCTION boolean GetComputerNameA(ref string cname,ref long nbuf) LIBRARY "Kernel32.dll"

AND IN YOUR SCRIPT  use  this

string ls_compname
long ll_buf
ll_buf = 255
ls_compname = space(ll_buf)
GetComputerNameA(ls_compname, ll_buf)

Regards-
0
 
LVL 8

Assisted Solution

by:Vikas_Dixit
Vikas_Dixit earned 100 total points
ID: 10672569
Or refer this page for user of GetIpAddrTable IP helper API :

http://www.experts-exchange.com/Programming/Programming_Languages/PowerBuilder/Q_20572543.html

Regards,
Vikas
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

Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand columnThat will then direct you to their download page.From that page s…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

914 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

21 Experts available now in Live!

Get 1:1 Help Now