The problem with ifconfig is that it will tell you the LAN IP address your MAC is connected to.
I don't know what kind of programs there is on a MAC, but if you have at least mail, wget and a basic shell, and if you know how to code a simple script that you can send to your MAC (via ssh, ...), write a script that wget to a site that returns your current IP address (Current IP Check for example) and send this page to your email address.
Code:
#!/bin/sh
FILE=/tmp/ext_ip
wget -T3 -qO$FILE http://checkip.dyndns.org/
mail -s 'My MAC address' youremail@adress.com << EOF
$(cat ${FILE})
EOF
exit 0
I didn't test the script above, but I hope it can help you a bit
If you can send this script to your machine via SSH or anything else, set the executable flag and use cron (or similar on MAC) to execute this script every hour or so, you'll receive regular emails containing the current (external) IP address of your MAC.
Arright, here's what I'm trying to do. I want to dig up currently active IP addresses on my subnet, and my present strategy is to ping every address until I find active ones, then ping them more often to verify their status. Next, I want to find the names of the computers associated with those... (1 Reply)
I'm trying to find the IP address of a print queue. I tried this, but nada.
cat /etc/hosts | lp -d lp01
Looked in the hosts file but it's not there (2 Replies)
My computer is one of three computer on our LAN. Our router is a Time Capsule. My computer is the only of of three computers that has been assigned a static IP address on the LAN, because it runs an Apache installation. I tinker around with web development from time to time, and I wanted to be... (7 Replies)
I have my iMac and MB pro connected by firewire. I can see the connection in the finderwindow, but can't locate the machines in terminal. Can someone help me? I do most of my work in Terminal and would like to move/copy files from one machine to another like that -- I could have sworn I was able... (4 Replies)
Hello
A friend and I recently got our hands on an old computer (a rainbow '83 I think), cleaned it, etc... And now we're trying to get the thing running. The problem is that the included OS is badly documented, so I thought of installing an old version of UNIX on it. So the questions are: Is that... (8 Replies)
Hi Guys,
I want to find another(Local host) machine IP address from my machine.. We are all connected in the same server, I mean same LAN.
What i done is
Connected with that user machine using SSH and SU.. After that i used IFCONFIG but it shows my Ip address. Can not able to get the... (8 Replies)
Hi,
I am trying to write a script that will check all used IP on the server and then print me an addressees that are not in use. Problem is in comparing two variables
#!/bin/bash
NETSTAT=$(netstat -ntp | awk '{ print $4 }' | grep -v "127.0.0.1" | cut -d ":" -f1 | grep "^"|sort | uniq )... (6 Replies)
Discussion started by: nemesis911
6 Replies
LEARN ABOUT DEBIAN
bt-device
bt-device(1) bluez-tools bt-device(1)NAME
bt-device - a bluetooth device manager
SYNOPSIS
bt-device [OPTION...]
Help Options:
-h, --help
Application Options:
-a, --adapter=<name|mac>
-l, --list
-c, --connect=<mac>
-d, --disconnect=<name|mac>
-r, --remove=<name|mac>
-i, --info=<name|mac>
-s, --services <name|mac> [<pattern>]
--set <name|mac> <property> <value>
-v, --verbose
DESCRIPTION
This utility is used to manage Bluetooth devices. You can list added devices, connect to a new device, disconnect device, remove added
device, show info about device, discover remote device services or change device properties.
OPTIONS -h, --help
Show help
-a, --adapter <name|mac>
Specify adapter to use by his Name or MAC address
(if this option does not defined - default adapter used)
-l, --list
List added devices
-c, --connect <mac>
Connect to the remote device by his MAC, retrieve all SDP
records and then initiate the pairing
-d, --disconnect <name|mac>
Disconnects a specific remote device by terminating the
low-level ACL connection.
-r, --remove
Remove device (and also the pairing information)
-i, --info
Show information about device (returns all properties)
-s, --services <name|mac> [<pattern>]
Starts the service discovery to retrieve remote service records,
the `pattern` parameter can be used to specify specific UUIDs
--set <property> <value>
Change device properties (see DEVICE PROPERTIES section for list
of available properties)
-v, --verbose
Verbosely display remote service records (affect to service
discovery mode)
DEVICE PROPERTIES
string Address [ro]
The Bluetooth device address (MAC) of the remote device.
string Name [ro]
The Bluetooth remote device name.
string Icon [ro]
Proposed icon name according to the freedesktop.org
icon naming specification.
uint32 Class [ro]
The Bluetooth class of device of the remote device.
list UUIDs [ro]
List of 128-bit UUIDs that represents the available
remote services.
boolean Paired [ro]
Indicates if the remote device is paired.
boolean Connected [ro]
Indicates if the remote device is currently connected.
boolean Trusted [rw]
Indicates if the remote is seen as trusted.
boolean Blocked [rw]
If set to true any incoming connections from the
device will be immediately rejected.
string Alias [rw]
The name alias for the remote device. The alias can
be used to have a different friendly name for the
remote device.
In case no alias is set, it will return the remote
device name. Setting an empty string as alias will
convert it back to the remote device name.
boolean LegacyPairing [ro]
Set to true if the device only supports the pre-2.1
pairing mechanism.
AUTHOR
Alexander Orlenko <zxteam@gmail.com>.
SEE ALSO bt-adapter(1)bt-agent(1)bt-audio(1)bt-input(1)bt-monitor(1)bt-network(1)bt-serial(1)
2010-11-22 bt-device(1)