To find out my ip address
Hi,
i am actually connected to a computer that is connected to a LAN. I want to find out my ip address. i have checked 'ifconfig' its not working. Plz let me know any other command is there |
Hello,
can you give us more information? what do you get when you type ifconfig. please paste your results here. also, what distro are you using? |
ifconfig may not be accessible directly or not at all. check sh /usr/sbin/ifconfig or sh /usr/ifconfig depending on the setup. If you want the public IP address, http://www.whatismyip.com/ .
Sometimes you can ls /var/log/samba and see if the ip shows up in there as a log. hostname -i |
Do you have an icon that shows that you're connected? If so then right click on it and select connection information.
|
You and also use perl to find you external public IP address.
|
try this
/sbin/ip addr |
You need to have root privileges..
|
Quote:
Thanx.. |
Unless you are using a 56K modem or an older DSL modem, ifconfig will tell you your LAN address, not your internet IP address.
Certain websites will return your IP address. Use one of these BASH commands: curl ifconfig.me curl echoip.com; echo or you can can use a browser with one of these URLs: ifconfig.me, echoip.com, whatismyip.com, http://checkip.dyndns.com/, http://ip-me.co.uk or find the LAN address of your modem or router with this BASH command: arp -n Type the numeric IP into your browser to get to an information page You might need a password or modem access code, printed on the DSL modem |
Member response
Hi,
Quote:
Quote:
|
Quote:
Code:
#!/bin/bash |
All times are GMT -5. The time now is 01:19 AM. |