On 28-May-05 Barry Samuels wrote:
Now I have another problem. As my laptop now doesn't have a fixed IP address how do I find out what that address is so that other machines on my network can contact it?
There are two possibilities I know of:
1. Run '/sbin/ifconfig' locally and look for the entry corresponding to your wireless connection.
2. If there's a remote machine (i.e. on the other side of the wireless connection) that you can log in to, then log in to it and run 'who am i'.
Example showing both the above (but using my dialup PPP connection):
Local: ====== ted@brandy:~ > /sbin/ifconfig [stuff snipped] ppp0 Link encap:Point-to-Point Protocol inet addr:213.122.95.10 P-t-P:213.120.208.150 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:4 errors:0 dropped:0 overruns:0 frame:0 TX packets:5 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:40 (40.0 b) TX bytes:61 (61.0 b)
Remote (nessie.mcc.ac.uk): ========================== FreeBSD 4.5-STABLE (NESSIE) #3: Mon Feb 11 14:27:21 GMT 2002 bash$ who am i efh ttyp5 May 28 20:17 (213.122.95.10)
So you can see that my local "ppp0" interface has "inet addr:" 213.122.95.10, and this is also the IP address returned by the remote machine to 'who am i'.
Of course your wireless interface will not be called "ppp0" (and I don't know what it should be called), but it should be pretty obvious which it is.
(The 213.120.208.150 in "ppp0" at "P-t-P:" is the IP address of the machine at the other end of the ppp connection, i.e. the dialup server).
So in that case 213.122.95.10 would be the IP address of my local machine as seen from the internet, and it should respond to ping, telnet, etc.
Hoping this helps, Ted.
-------------------------------------------------------------------- E-Mail: (Ted Harding) Ted.Harding@nessie.mcc.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 28-May-05 Time: 20:33:57 ------------------------------ XFMail ------------------------------