Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How do I get the hexadecimal into a variable and then convert to a IPAddress?

Posted on 2001-07-20
3
379 Views
Last Modified: 2013-12-26
Question for PowerBuilder 5.0.04

I need to get the IP Address of a local computer.
I know how to get to the IP Address in the Registry.
The problem is the IP Address is in a hexadecimal form.
How do I get the hexadecimal into a variable?
How do I convert the hexadecimal back to a standard IP Address?

Thanks,
  Frank
0
Comment
Question by:frank_s
3 Comments
 
LVL 4

Expert Comment

by:Bhatti
ID: 6307357
Please write how you are getting IP Adress, that I can Think how to put Hexadec.  into variable.
0
 

Accepted Solution

by:
holvoet earned 100 total points
ID: 6307829
The registry is not reliable; among other things, the location of the ip address
depends on your type of network card (at least it does on NT).

This link should contain exactly what you're looking for :

http://eric.aling.tripod.com/PB/tips/pbtip14.htm

(more messing around with API calls unfortunately).

Regards,
Jo
0
 

Expert Comment

by:SpideyMod
ID: 8297042
Force Accepted

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

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…
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 synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

792 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