Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello guys!
i have a router to control my internet connection and i am looking for a way to find the external ip. i know thatyou are going to say to me "whatsmyip.com" but what i really want is a console command that will give me back my ip. do you know how?
maybe was my mistake for not clear it. i want my computer to find the outside ip automatically and then send it by e-mail somewhere without me be inside the network.
i tried with lynx but i couldn't make it work. anyway i know that about dyndns services but i have a problem, i have a netgear router which is being hacked all the time and as a result they change me my IP, so when i ping my self i get back an IP something like 192.168.4.200 instead of my real IP. so i need someone "from inside" to tell me the true IP. so this command you gave me will be my insider
what i am going to do is this: lynx -dump http://whatismyip.com | awk '/Your/ {print $4}' > test && mail qwerty@qwerty.qw -q test -s mycurrentip
what i still looking for is about the mail program how am i going to say to the program "send" i found that if you are typing a mail you press ctrl+D but what do you do in such a case?
Sounds like you need to fix the leaks.
Is the router updated with the latest firmware?
What services are you allowing through the router?
Is this a wireless router?
What distribution / version of linux are you running?
Quote:
so when i ping my self i get back an IP something like 192.168.4.200 instead of my real IP
Internal or external ping? router or linux PC?
Have you changed the router's default password?
Is the router updated with the latest firmware?
-The only version i found is this> http://kbserver.netgear.com/release_notes/D102358.asp
What services are you allowing through the router?
-apache 80
-ssh 22
-remote configuration 8080
Is this a wireless router?
-yes, 64bit encoding
What distribution / version of linux are you running?
-SuSE 10 updated
Internal or external ping?
-external
router or linux PC?
-both
Have you changed the router's default password?
-yes, a mix of letters,capitals,numbers,symbols.
Distribution: Mainly Debian, some Fedora for the bleeding edge fix
Posts: 92
Rep:
You Can use traceroute to display the outside of the router, just need to figure out which line displays your external router Interface. Then it should be quite easy to mail the rigth line to yourself.
its not working on me, does on you?
billg@server:~> ip="lynx -dump http://whatismyip.com | awk '/Your/ {print $4}'"
billg@server:~> mail -s $ip billg@billg.gr
"mp" is not a user of this system
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.