Solved

Get the IP's list

Posted on 2004-03-24
6
235 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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

758 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

18 Experts available now in Live!

Get 1:1 Help Now