Click here to Skip to main content
15,895,462 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: CCC Pin
pkfox18-May-21 22:37
professionalpkfox18-May-21 22:37 
GeneralRe: CCC Pin
Greg Utas19-May-21 0:51
professionalGreg Utas19-May-21 0:51 
GeneralRe: CCC Pin
pkfox19-May-21 1:10
professionalpkfox19-May-21 1:10 
GeneralRe: CCC Pin
Greg Utas19-May-21 1:26
professionalGreg Utas19-May-21 1:26 
GeneralStarlink Pin
Roger Wright18-May-21 20:45
professionalRoger Wright18-May-21 20:45 
GeneralRe: Starlink Pin
OriginalGriff18-May-21 21:17
mveOriginalGriff18-May-21 21:17 
GeneralRe: Starlink Pin
pkfox18-May-21 22:36
professionalpkfox18-May-21 22:36 
GeneralRe: Starlink Pin
OriginalGriff18-May-21 23:32
mveOriginalGriff18-May-21 23:32 
Oh yes - they closed it a few years back (that was a 2014 article!)
I modified the app some months ago when I switched ISP:
C#
/// <summary>
/// Fill in the details for this instance
/// </summary>
/// <remarks>
/// This works by requesting data from whatismyipaddress.com, which returns the available info on an IP address
/// If none is supplied, the current address is used.
/// </remarks>
/// <param name="host"></param>
private void FillInDetails(string host)
    {
    Timestamp = DateTime.Now;
    IPAddress addr = IPAddress.None;
    try
        {
        if (string.IsNullOrWhiteSpace(host))
            {
            host = "http://whatismyipaddress.com/";
            }
        HtmlWeb web = new HtmlWeb();
        HtmlDocument doc = web.Load(host);
        HtmlNode node = doc.DocumentNode.SelectSingleNode(@"//span[@class='address'][@id='ipv4']");
        if (node != null)
            {
            addr = IPAddress.Parse(node.InnerText);
            HtmlNodeCollection info = doc.DocumentNode.SelectNodes(@"//p[@class='information']");
            ISP = info[0].ChildNodes[2].InnerText;
            City = info[1].ChildNodes[2].InnerText;
            Region = info[2].ChildNodes[2].InnerText;
            Country = info[3].ChildNodes[2].InnerText;
            }
        }
    catch (Exception ex)
        {
        // Ignore errors (it probably means the router is down...)
        Debug.WriteLine(ex.Message);
        addr = IPAddress.None;
        }
    Address = addr;
    }
I'll put updating the article on my ToDo list ... Sigh | :sigh:
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!

GeneralRe: Starlink Pin
pkfox18-May-21 23:35
professionalpkfox18-May-21 23:35 
GeneralRe: Starlink Pin
OriginalGriff18-May-21 23:55
mveOriginalGriff18-May-21 23:55 
GeneralRe: Starlink Pin
pkfox19-May-21 0:05
professionalpkfox19-May-21 0:05 
GeneralRe: Starlink Pin
OriginalGriff19-May-21 1:11
mveOriginalGriff19-May-21 1:11 
GeneralRe: Starlink Pin
dandy7219-May-21 4:30
dandy7219-May-21 4:30 
GeneralRe: Starlink Pin
W Balboos, GHB19-May-21 5:55
W Balboos, GHB19-May-21 5:55 
GeneralRe: Starlink Pin
dandy7219-May-21 7:48
dandy7219-May-21 7:48 
GeneralRe: Starlink Pin
dandy7219-May-21 8:01
dandy7219-May-21 8:01 
GeneralRe: Starlink Pin
W Balboos, GHB20-May-21 0:49
W Balboos, GHB20-May-21 0:49 
GeneralRe: Starlink Pin
dandy7220-May-21 3:14
dandy7220-May-21 3:14 
GeneralRe: Starlink Pin
W Balboos, GHB19-May-21 1:53
W Balboos, GHB19-May-21 1:53 
GeneralPower Shell without the complexity? Could be ... Pin
OriginalGriff18-May-21 10:18
mveOriginalGriff18-May-21 10:18 
GeneralRe: Power Shell without the complexity? Could be ... Pin
dandy7218-May-21 10:53
dandy7218-May-21 10:53 
GeneralRe: Power Shell without the complexity? Could be ... Pin
pkfox18-May-21 10:56
professionalpkfox18-May-21 10:56 
GeneralRe: Power Shell without the complexity? Could be ... Pin
SeanChupas18-May-21 10:54
SeanChupas18-May-21 10:54 
QuestionRe: Power Shell without the complexity? Could be ... Pin
honey the codewitch18-May-21 12:23
mvahoney the codewitch18-May-21 12:23 
GeneralRe: Power Shell without the complexity? Could be ... Pin
PIEBALDconsult18-May-21 13:50
mvePIEBALDconsult18-May-21 13:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.