API function to find MAC address in powerbuilder

Posted on 2003-12-08
Last Modified: 2013-12-26
API function to find MAC address in powerbuilder
Question by:sathya_sk
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

Author Comment

ID: 9895612
API function to find MAC address in powerbuilder

Expert Comment

ID: 9895916
what do you mean by mac address

Expert Comment

ID: 9903666
Do you want to enumerate all MAC Id's available on the system, or a mac ID for a specific IP , or a mac ID for a specific adapter?
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Expert Comment

ID: 9904736
I don't know if there is an API but let me show you what I did to find MAC address for an IP.

I have a GetMAC.BAT file where I send a PING to IP address I want to check, next I use ARP command to get MAC address, result is saved to a file that is opened in PB for processing.

You can check what I said in a DOS screen:

1. Make Ping so your computer will ask for IP to router or other computers

Haciendo ping a con 32 bytes de datos:

Respuesta desde bytes=32 tiempo<1m TTL=128
Respuesta desde bytes=32 tiempo<1m TTL=128
Respuesta desde bytes=32 tiempo<1m TTL=128
Respuesta desde bytes=32 tiempo<1m TTL=128

Estadísticas de ping para
    Paquetes: enviados = 4, recibidos = 4, perdidos = 0
    (0% perdidos),
Tiempos aproximados de ida y vuelta en milisegundos:
    Mínimo = 0ms, Máximo = 0ms, Media = 0ms

2. Ask for Phisycal address in ARP table

c:\ARP -a

Interfaz: --- 0x10003
  Dirección IP          Dirección física      Tipo             00-10-5a-e3-e4-f1     dinámico

[To Save into a file]

c:\ARP -a  > c:\MyFile.Txt

Now in PB open MyFile.txt and process it to find the address you are looking for.   =   00-10-5a-e3-e4-f1


LVL 33

Accepted Solution

sajuks earned 100 total points
ID: 9910096

Author Comment

ID: 9910118
How to find Network id in powerbuilder5.0 ?
LVL 33

Expert Comment

ID: 9910153
Check .
Got lots of features which you can use.


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

Suggested Solutions

Title # Comments Views Activity
MS Visual Studio 2010 - Development & Debugging with external .css files 7 163
VB.Net Reusable Form Layout 4 173
IronPython and Visual Studio 2013+ 2 113
Best free Visio Editor? 2 233
In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

756 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