• Advertisement

Archived

This topic is now archived and is closed to further replies.

External IP change notice

This topic is 5116 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have a cable modem, and my ISP has this bad habit of changing my IP alot. This makes it difficult for me to telnet to my linux machine at home to work on things. I''d like to have the linux machine check the external IP address every 15-30 min and update a file on another server with the new IP. This probably wouldn''t be too hard if I was using the linux box as a router, but Right now it''s is behind a d-link wireless router. On the main status page for the router it displays the current external IP, but you have to log into the router to view this page. Is there anyway to have lynx, or some similar program, login and dump this info to a file for me to parse? I just can''t figure out how to get past the password. Any help would be great.

Share this post


Link to post
Share on other sites
Advertisement
send a http request to http://www.whatismyip.com/ and read you ip from the html file it sends you maybe?

Or you could use something like www.dyndns.org, i use them and run a opensource cliend called ddclient, written in perl. It is started in the startupscript & runs in the background. It updates myadress.dyndns.org to automaticly point at my ip when it changes.

And its free, recomended.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
My solution to this was to create a script that ran on my home computer. This script called a CGI script on my website, which recorded the public IP of my home box (the web server would see my public IP as it is on the public side of my NAT router. I could then access the IP from my website whenever I wanted to access my home machine.

Share this post


Link to post
Share on other sites
i made a script called myip that contains this:

#!/bin/bash
wget --quiet -O - http://www.whatismyip.com | awk ''//{print $4}''<br><br>that spits out my ip to the shell -- just redirect that script into a file and bam -- your ip in file form<br> </div> <div class='ipsItemControls'> <div data-controller='core.front.core.reaction' class='ipsItemControls_right ipsClearfix '> <div class='ipsReact ipsPos_right'> <div class='ipsReact_reactCountOnly ipsAreaBackground_light ipsType_blendLinks ipsHide' data-role='reactCount'> 0 </div> </div> </div> <ul class='ipsComment_controls ipsClearfix ipsItemControls_left' data-role="commentControls"> <li class='ipsHide' data-role='commentLoading'> <span class='ipsLoading ipsLoading_tiny ipsLoading_noAnim'></span> </li> </ul> </div> </div> <div class='ipsMenu ipsMenu_wide ipsHide cPostShareMenu' id='elSharePost_2327820_menu'> <div class='ipsPad'> <h4 class='ipsType_sectionHead'>Share this post</h4> <hr class='ipsHr'> <h5 class='ipsType_normal ipsType_reset'>Link to post</h5> <input type='text' value='https://www.gamedev.net/forums/topic/206023-external-ip-change-notice/?do=findComment&comment=2327820' class='ipsField_fullWidth'> <h5 class='ipsType_normal ipsType_reset ipsSpacer_top'>Share on other sites</h5> <ul class='ipsList_inline ipsList_noSpacing ipsClearfix' data-controller="core.front.core.sharelink"> <li> <a href="http://twitter.com/share?text=External%20IP%20change%20notice&url=https%3A%2F%2Fwww.gamedev.net%2Fforums%2Ftopic%2F206023-external-ip-change-notice%2F%3Fdo%3DfindComment%26comment%3D2327820" class="cShareLink cShareLink_twitter" target="_blank" data-role="shareLink" title='Share on Twitter' data-ipsTooltip rel='noopener'> <i class="fa fa-twitter"></i> </a></li> <li> <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.gamedev.net%2Fforums%2Ftopic%2F206023-external-ip-change-notice%2F%3Fdo%3DfindComment%26comment%3D2327820" class="cShareLink cShareLink_facebook" target="_blank" data-role="shareLink" title='Share on Facebook' data-ipsTooltip rel='noopener'> <i class="fa fa-facebook"></i> </a></li> <li> <a href="https://plus.google.com/share?url=https%3A%2F%2Fwww.gamedev.net%2Fforums%2Ftopic%2F206023-external-ip-change-notice%2F%3Fdo%3DfindComment%26comment%3D2327820" class="cShareLink cShareLink_google" target="_blank" data-role="shareLink" title='Share on Google+' data-ipsTooltip rel='noopener'> <i class="fa fa-google-plus"></i> </a></li> <li> <a href="http://www.reddit.com/submit?url=https%3A%2F%2Fwww.gamedev.net%2Fforums%2Ftopic%2F206023-external-ip-change-notice%2F%3Fdo%3DfindComment%26comment%3D2327820&title=External+IP+change+notice" class="cShareLink cShareLink_reddit" target="_blank" title='Share on Reddit' data-ipsTooltip rel='noopener'> <i class="fa fa-reddit"></i> </a></li> <li> <a href="http://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.gamedev.net%2Fforums%2Ftopic%2F206023-external-ip-change-notice%2F%3Fdo%3DfindComment%26comment%3D2327820&title=External+IP+change+notice" class="cShareLink cShareLink_linkedin" target="_blank" data-role="shareLink" title='Share on LinkedIn' data-ipsTooltip rel='noopener'> <i class="fa fa-linkedin"></i> </a></li> </ul> </div> </div> </div> </div> </article> <a id="comment-2330137"></a> <article id="elComment_2330137" class="cPost ipsBox ipsComment ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone "> <div class="cAuthorPane cAuthorPane_mobile ipsResponsive_showPhone ipsResponsive_block"> <h3 class="ipsType_sectionHead cAuthorPane_author ipsResponsive_showPhone ipsResponsive_inlineBlock ipsType_break ipsType_blendLinks ipsTruncate ipsTruncate_line"> <a href="https://www.gamedev.net/profile/7780-c-junkie/" data-ipshover data-ipshover-target="https://www.gamedev.net/profile/7780-c-junkie/?do=hovercard&referrer=https%253A%252F%252Fwww.gamedev.net%252Fforums%252Ftopic%252F206023-external-ip-change-notice%252F" title="Go to C-Junkie's profile"> <span style='color:#'> C-Junkie </span> </a> <span class="ipsResponsive_showPhone ipsResponsive_inline">   <span title="Member's total reputation" data-ipsTooltip class='ipsRepBadge ipsRepBadge_positive'> <i class='fa fa-plus-circle'></i> 1099 </span> </span> </h3> <div class="cAuthorPane_photo"> <a href="https://www.gamedev.net/profile/7780-c-junkie/" data-ipshover data-ipshover-target="https://www.gamedev.net/profile/7780-c-junkie/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to C-Junkie's profile"> <img src="https://secure.gravatar.com/avatar/37bdbbfb871476201e186aa122f860f0?d=https://www.gamedev.net/uploads/monthly_2017_08/C.png.b9cdece58372e63e6e309af863bd4dd4.png" alt=""></a> </div> </div> <aside class="ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone"><h3 class="ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break"> <strong> <a href="https://www.gamedev.net/profile/7780-c-junkie/" data-ipshover data-ipshover-target="https://www.gamedev.net/profile/7780-c-junkie/?do=hovercard&referrer=https%253A%252F%252Fwww.gamedev.net%252Fforums%252Ftopic%252F206023-external-ip-change-notice%252F" title="Go to C-Junkie's profile"> C-Junkie </a> </strong> <span class="ipsResponsive_showPhone ipsResponsive_inline">   <span title="Member's total reputation" data-ipsTooltip class='ipsRepBadge ipsRepBadge_positive'> <i class='fa fa-plus-circle'></i> 1099 </span> </span> </h3> <ul class="cAuthorPane_info ipsList_reset"> <li class="ipsType_break">Contributor</li> <li><span class='ipsPip'></span><span class='ipsPip'></span><span class='ipsPip'></span><span class='ipsPip'></span></li> <li class="cAuthorPane_photo"> <a href="https://www.gamedev.net/profile/7780-c-junkie/" data-ipshover data-ipshover-target="https://www.gamedev.net/profile/7780-c-junkie/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to C-Junkie's profile"> <img src="https://secure.gravatar.com/avatar/37bdbbfb871476201e186aa122f860f0?d=https://www.gamedev.net/uploads/monthly_2017_08/C.png.b9cdece58372e63e6e309af863bd4dd4.png" alt=""></a> </li> <li><span style='color:#'>Member</span></li> <li> <span title="Member's total reputation" data-ipsTooltip class='ipsRepBadge ipsRepBadge_positive'> <i class='fa fa-plus-circle'></i> 1099 </span> </li> <li class="ipsType_light">3947 posts</li> <span data-ipsTooltip data-ipsTooltip-label="08/03/00 11:11 AM" title="08/03/00 11:11 AM"> <li class="ipsType_light ipsType_small"> Joined August 2000 </li> </span> </ul></aside><div class="ipsColumn ipsColumn_fluid"> <div id='comment-2330137_wrap' data-controller='core.front.core.comment' data-commentApp='forums' data-commentType='forums' data-commentID="2330137" data-quoteData='{"userid":7780,"username":"C-Junkie","timestamp":1076873741,"contentapp":"forums","contenttype":"forums","contentid":206023,"contentclass":"forums_Topic","contentcommentid":2330137}' class='ipsComment_content ipsType_medium ipsFaded_withHover'> <div class='ipsComment_meta ipsType_light'> <div class='ipsPos_right ipsType_light ipsType_reset ipsFaded ipsFaded_more ipsType_blendLinks'> <ul class='ipsList_inline ipsComment_tools'> <li><a class='ipsType_blendLinks' href='https://www.gamedev.net/forums/topic/206023-external-ip-change-notice/?do=findComment&comment=2330137' data-ipsTooltip title='Share this post' data-ipsMenu data-ipsMenu-closeOnClick='false' id='elSharePost_2330137' data-role='shareComment'><i class='fa fa-share-alt'></i></a></li> </ul> </div> <div class='ipsType_reset'> <a href='https://www.gamedev.net/forums/topic/206023-external-ip-change-notice/?do=findComment&comment=2330137' class='ipsType_blendLinks'>Posted <time datetime='2004-02-15T19:35:41Z' title='02/15/04 07:35 PM' data-short='14 yr'>February 15, 2004</time></a> <span class='ipsResponsive_hidePhone'> </span> </div> </div> <div class='cPost_contentWrap ipsPad'> <div data-role='commentContent' class='ipsType_normal ipsType_richText ipsContained' data-controller='core.front.core.lightboxedImages'> ------
C-Junkie says: SOMEBODY FIX POES''S POST!

and somebody fix the darn forum. sheesh.

the thing that changes your IP address is your dhcp client. usually they have the ability to call a script when they get a new IP address, so hook onto that to respond to IP changes.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Good Lord!

By all means, DO NOT USE TELNET unless you absolutely HAVE to, it transmits passwords in plaintext, and your telnet sessions are clearly readable by any packet sniffer. Start using SSH now.

If you need to connect from a windows box, use Putty (free ssh client, simple .exe that doesn''t involve any installation or anything fancy, google for ''putty'')

aagh you hurt my brain when you said "telnet"

Share this post


Link to post
Share on other sites

  • Advertisement