Note: If you got here using a web search engine, you can find the program here.
Disclaimer: Although these XFCNs seems to work fine, they are distributed "as is". Use at your own risk. So there.
These are some XFCNs that return IP addresses of local/remote computers and stuff. A stack is included that demonstrates their use. Look in the scripts of the two buttons for the actual syntax and stuff.
GetLocalIPAddress - returns the address (number format) of the local machine (i.e., your Mac)
NameToAddress - returns the address (number format) of a remote computer given a host name.
AddressToDot - converts the addresses from number format into human readable "dot" format (w.x.y.z)
AddressToName - returns the name of a remote machine given the address (number format)
DotToAddress - converts an address from human readable "dot" format (w.x.y.z) into a number
I believe there are "official" XCMDs from Apple that do some of these things in a MacTCP tool kit (or something like that) so you may want to use those instead.
If you have any questions, comments, (constructive) criticism, or bug reports please let me know. You can contact me at the address(es) below.
Carl Bell's Web Page
Stuff I've Written
Carl W. BellPhone:
Academic and Research Computing Services
Baylor University Electronic Library
One Bear Place #97148
Waco, TX 76798
(254) 710-4065Baylor's Fine Print:
This software, data and/or documentation contain trade secrets and confidential information which are proprietary to Baylor University. Their use or disclosure in whole or in part without the express written permission of Baylor University is prohibited.
This software, data and/or documentation are also unpublished works protected under the copyright laws of the United States of America. If these works become published, the following notice shall apply:
Copyright © 1993 Baylor UniversityThe name of Baylor University may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE, DATA AND/OR DOCUMENTATION ARE PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
All Rights Reserved
When permission has been granted to make copies of this software, data and/or documentation, the above notices must be retained on all copies.
Permission is hereby granted for non-commercial use and distribution of IP Address XFCNs.