Giter VIP home page Giter VIP logo

getmyip's Introduction

Hi there πŸ‘‹

I'm Tim, welcome to my little corner of GitHub. I'm glad that you stopped by.

I'm a retired mainframe system administrator. I did that for 25 years and now I like to build Windows applications for fun. I like to challenge myself to learn something new.

I build apps for myself. If I see a need, a problem to solve, or have an idea of how to make something easier, I challenge myself to build an app to satisfy the need or fix the problem. I publish some of the ones that work here on GitHub in hopes that someone might find them useful.

There are no guarantees that anything you find here will work in your environment. I'll try to offer support where I can. Although there is no promise that I will agree, I will read any requests for enhancements. I'll do that until it's no longer fun or it feels like a job.

Be sure to check out the pinned repositories below. πŸ‘‡πŸ»

Here's some stats

Tim's GitHub stats

My GitHub Language Stats

This is Barry and he is a very good boy!

This is Barry

getmyip's People

Contributors

bovirus avatar cmtrix avatar dependabot[bot] avatar timthreetwelve avatar udev2019 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

cmtrix udev2019

getmyip's Issues

Bug Report: 0.9.2 - Feedback

Is there an existing issue for this?

  • I have searched the existing issues (both open and closed).

What happened or didn't happen?

Left side panel need to increase a few (Info programma truncated)
Right side panel is too short to show all etxt and IP logo
Pleasincrease default width for elft and right panel

Original size
image

Incraesed size (show IP logo)
image

Check box for full path of log file is not showed.
Increase default right panel width.
image

In this context "Close" is better then "Cancel".
image

Asking to show map show this error with these untranslated strings,
image

Steps To Reproduce

Check screenshots

Version

0.9.2

Windows Version

Windows 22 H2 64bit italian

Relevant log output

No response

Anything else?

No response

Bug Report: ipext.org returns "No such host is known"

Is there an existing issue for this?

  • I have searched the existing issues (both open and closed).

What happened or didn't happen?

Looks like ipext.org is no longer available.

Steps To Reproduce

Settings -> Application Settings -> External IP information provider -> select ipext.org

Version

0.9.8

Windows Version

Windows 11 23H2 22631.3296

Relevant log output

2024/03/17 18:38:27.26 ERROR  Error retrieving data
System.Net.Http.HttpRequestException: No such host is known. (api.ipext.org:443)
 ---> System.Net.Sockets.SocketException (11001): No such host is known.

Anything else?

No response

Bug Report:Error parsing JSON. JSON was null.

Is there an existing issue for this?

  • I have searched the existing issues (both open and closed).

What happened or didn't happen?

Error parsing JSON. JSON was null.
System.ArgumentNullException: Value cannot be null. (Parameter 'json')
at System.Text.Json.JsonSerializer.Deserialize[TValue](String json, JsonSerializerOptions options)
at GetMyIP.Helpers.IpHelpers.<>c__DisplayClass5_0.b__0()

Steps To Reproduce

after installation with checkbox run after install checked

Version

0.9.0

Windows Version

(all updates) Microsoft Windows 10.0.22621

Relevant log output

Error parsing JSON. JSON was null.
System.ArgumentNullException: Value cannot be null. (Parameter 'json')
   at System.Text.Json.JsonSerializer.Deserialize[TValue](String json, JsonSerializerOptions options)
   at GetMyIP.Helpers.IpHelpers.<>c__DisplayClass5_0.<ProcessIPInfo>b__0()

Anything else?

No response

Enhancement Request - Inno Setup script

Brief summary of your request

Improvements about installer Inno Setup script

Request details

@t

I have some request about current installer script

"View the ReadMeFile" is untranslated

Why did yoiu use this string

SetupWindowTitle = Setup - {#MyAppName} {#MyAppVersion}

that means to show "Setup - xxx xxxx" also in Italian?
The stringID "SetupWindowTitle" is already localized in each .isl Inno Setup language file.

Is missing "UninstallDisplayName="
Is missing "AppSupportURL="
I missing "AppUpdatesURL="

The value "https://github.com/Timthreetwelve/GetMyIP" can be set through define
The value "EBEA37CE-1C9C-44C2-ACE3-102E6BF79364" (appID) can be set via define

Is missing "DeleteConfigFiles" string text message
mres := MsgBox(CustomMessage('DeleteConfigFiles'), mbConfirmation, MB_YESNO or MB_DEFBUTTON2)

Is missing "AppIsRunning" string text message
Answer := MsgBox(ThisApp + ' ' + CustomMessage('AppIsRunning'), mbError, MB_OKCANCEL);

Please define these two string in english.

If you agree I can post a PR for the Inno Setup script.

Anything else?

No response

Here are a few suggestions for improvement if possible

Hello, thank you for writing such a good software, I have been using it for a few days and it is very good.
I usually use vpn to surf the Internet, so I need to know whether my IP is correct every time I turn on the computer.

Here are a few suggestions for improvement if possible:

  1. When minimized, the icon can be displayed on the tray. The icon can be replaced by the national flag icon, so that you can immediately know the current IP belongs to the region and country.
  2. When you minimize to the tray, you can hover the mouse to display a prompt. The content of the prompt is the basic information, including the IP region and country. This avoids having to open it every time.
  3. The IP can be refreshed. For example, if I change the IP in the middle, can it be automatically recognized, or give a refresh button, so that I only need to open the software once when I work for a long time.
  4. https://vpntesting.com/my-ip-address The actual reference example can be seen here. I used this software before, but they seem to have stopped supporting it and can’t use it anymore.
  5. Thank you for the work you do

Strings added in latest release

Report a problem with a translation

@bovirus and @CMTriX

The following strings were added in release 0.9.3.

<sys:String x:Key="Button_Close">Close</sys:String>
<sys:String x:Key="Button_OpenAppFolder">Open App Folder</sys:String>
<sys:String x:Key="MsgText_Error_FileExplorer">Error trying to open File Explorer.</sys:String>
<sys:String x:Key="MsgText_Error_LatLonUnavailable">Latitude and/or Longitude data is not available</sys:String>
<sys:String x:Key="MsgText_Error_TestLanguage">There is a problem with the language file.</sys:String>
<sys:String x:Key="SettingsItem_EnableLanguageTesting">Enable language testing</sys:String>

This brings the total up to 202.

GetMyIP_2023-11-01_11-59-42

I hope that the language testing feature helps.

Tim

Contribute a translation

No response

If this is a contribution, enter the language name and code

No response

If you wish to have your contribution acknowledged

No response

Language Testing Bug 🐞

Report a problem with a translation

When using the language testing that was introduced in version 0.9.3, line breaks (carriage returns), expressed as &#13; are not being processed when read from the file at runtime. In other words, the line of text isn't breaking. When the same file (or string) is added as a resource and compiled, the line breaks work fine. Everything else about the test process works fine.

Example:

    <sys:String x:Key="MsgText_Error_TooManyRequests" xml:space="preserve">Error connecting.&#13;Too many requests.</sys:String>

Displays as:
Error connecting.Too many requests.

When it should display as:

Error connecting.
Too many requests.

I'm thinking that it has something to do with the file being read at runtime vs being compiled as a resource. I've tried encoding the file as ANSI, UTF-8, UTF-8 with BOM, and UTF-16 with the same result.

This has me stumped at the moment. Reaching out for help. If someone has an idea, let me know.

In the meantime, language contributors should continue using language testing, but be aware that this is happening.

Contribute a translation

No response

If this is a contribution, enter the language name and code

No response

If you wish to have your contribution acknowledged

No response

Italian Translation

Report a problem with a translation

@bovirus, are these two supposed to have the same translation?

    <sys:String x:Key="External_ASName">Come Nome</sys:String>
    <sys:String x:Key="External_ASNumber">Come Nome</sys:String>

Also, in this context "AS" is an abbreviation for Autonomous System.

Do the following need to be updated as well?

    <sys:String x:Key="SettingsItem_ShowAsName">Visualizza come nome</sys:String>
    <sys:String x:Key="SettingsItem_ShowAsNumber">visualizza come numero</sys:String>

If the abbreviation is confusing, feel free to use Autonomous System.

Contribute a translation

No response

If this is a contribution, enter the language name and code

No response

If you wish to have your contribution acknowledged

No response

Bug Report: Inno Setup installer script - Message strings not defined

Is there an existing issue for this?

  • I have searched the existing issues (both open and closed).

What happened or didn't happen?

@Timthreetwelve

In Inno Setup script seems there are two message string not defined

Answer := MsgBox(ThisApp + ' ' + CustomMessage('AppIsRunning'), mbError, MB_OKCANCEL);
mres := MsgBox(CustomMessage('DeleteConfigFiles'),

seems that in [CustoMString] section is not defined the string

AppIsRunning
DeleteConfigFiles

shoiuld be like

[CustomStrings]
en.AppIsRunning=xxxxx
een.DeleteConfigFiles=xxxx

Please check both in GetMyIP and Windows Update Viewer installer script

Thanks.

Steps To Reproduce

Check Inno Setup installer script file

Add in CistomString section the string like

en.AppIsRunning=xxxxx
een.DeleteConfigFiles=xxxx

Version

0.9.1

Windows Version

Windows 22 H2 64bit italian

Relevant log output

No response

Anything else?

No response

Enhancement Request - Multilingual UI

Brief summary of your request

Multilingual UI

Request details

Canyou add multilingual support?

i can provide DUTCH language. If there are more people who can help with other languages, please reply!

Anything else?

No response

Bug Report: ERROR Parsing JSON

Is there an existing issue for this?

  • I have searched the existing issues (both open and closed).

What happened or didn't happen?

Installed version
checkbox: open after install

error JSON

Steps To Reproduce

Installed version
checkbox: open after install
ERROR JSON

If installed and option not checked, then no error.

Version

0.8.1.0

Windows Version

(all updates) Microsoft Windows 10.0.22621

Relevant log output

2023/10/16 13:29:37.03 DEBUG  Discovering internal addresses took 71,78 ms
2023/10/16 13:29:37.22 ERROR  Error parsing JSON
System.NotSupportedException: This type of CollectionView does not support changes to its SourceCollection from a thread different from the Dispatcher thread.
   at System.Windows.Data.CollectionView.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)
   at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.ClearItems()
   at GetMyIP.Helpers.IpHelpers.ProcessIPInfo(String json)
2023/10/16 13:29:37.36 ERROR  {"status":"success","continent":"xxxxxxxxxxxxx","country":"xxxxxxxx","regionName":"xxxxxxxxxxx","city":"xxxxxxxxxx","zip":"xxx","lat":xx"lon":xxxx,"timezone":"xxxxx","offset":xxxx,"isp":"xxxxxxx","as":"xxxxx.","asname":"xxxxxxxxxxx","query":"xxxxxxx"}
2023/10/16 13:29:44.83 DEBUG  Discovering external IP information took 8.010,81 ms
2023/10/16 13:29:49.77 DEBUG  Opening C:\Users\xxx\AppData\Local\Temp\T_K\GetMyIP.20231016.log in default application

Anything else?

You can wash my car ;)

Enhancement Request: Automatic update when network changes

Brief summary of your request

Automatic update when network changes

Request details

As suggested by @CMTriX in #22

autorefresh ip mouseover in taskbar when change detected (vpn) (optional popup new IP for a short time)

This is worth investigating and deserves its own issue.

Anything else?

Not at this time

Enhancement Request - License text new layout format

Brief summary of your request

@Timthreetwelve

License without 80 chars format

Request details

Change the license text layout format without force 80 chars formatting (no changes in text content)

MIT License

Copyright (c) 2023 Tim Kennedy

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Use all space availble in the installer in license window (not force CR on the right).

Anything else?

No response

A pause on translation work

Report a problem with a translation

@bovirus @CMTriX @Vaso73

I dislike doing this, but I need to pause translation work on all the Timthreetwelve projects.

The current method of updating language files is too fragile. This problem is of my own making, and I need to devise a better way to deal with additions and updates.

I honestly appreciate all the effort that everyone has put into the translations.

I have other obligations all day on Thursday, so I'll try to have an update on Friday.

Thank you for your patience and understanding.

Tim

Contribute a translation

No response

If this is a contribution, enter the language name and code

No response

If you wish to have your contribution acknowledged

No response

Migrate Get My IP to .NET 8

Brief summary of your request

Update to .NET 8

Request details

Make necessary changes to run under .NET 8 Desktop Runtime. Update code to take advantage of new features were applicable.

Anything else?

No response

Bug Report: Multiple instances of GetMyIP.exe

Is there an existing issue for this?

  • I have searched the existing issues (both open and closed).

What happened or didn't happen?

It is currently possible to have multiple instances of GetMyIP.exe running. If two or more of these instances are minimized to the tray (notification area), there is no way to close any instance after the first, other than to end the task via Task Manager.

There is no advantage to running more than one instance of GetMyIP. The app should be updated to only allow one instance to run.

Steps To Reproduce

  1. Start an instance of Get My IP and minimize it to the tray.
  2. Start another instance and minimize it to the tray.
  3. Check Task Manager, note that there are two instances running as Background Processes, each with a unique PID.
  4. Close one instance via the tray icon context menu. Note that the icon has been removed from the tray.
  5. Return to Task Manager and note that there is still an instance running as a background task with no obvious way to interact with it or shut it down.

Version

0.9.6

Windows Version

Windows 11 23H2 build 22631.2715

Relevant log output

No log output relevant to this issue.

Anything else?

No response

Merry christmas 2 all!

Brief summary of your request

Merry christmas 2 all!

Request details

depositphotos_14037688-stock-illustration-merry-christmas-2262498275

Anything else?

No response

Enhancement Request

Brief summary of your request

List of -improvements- requested

Request details

  • option to startup with windows (on background minimized/on top)
  • autorefresh ip mouseover in taskbar when change detected (vpn) (optional popup new IP for a short time)
  • when closing program, it is closing without warning. Option to minimize on program close.

Anything else?

No response

Enhancement Request

Brief summary of your request

Exit button

Request details

Can you add option to HIDE the EXIT button in the left menu?

Anything else?

No response

Bug Report: Message about missing dotnet-desktop is not translated

Is there an existing issue for this?

  • I have searched the existing issues (both open and closed).

What happened or didn't happen?

@Timthreetwelve

If you try to install GetMyIP ina Windows system without dotnet-desktiop appear a window that explain the situation and propose to download dotnet-desktop.

In this window the text is untranslated (it's in english).

Please add relative strings in language file.

Steps To Reproduce

No response

Version

0.9.7

Windows Version

Windows 10 22 H2 64 bit italian

Relevant log output

No response

Anything else?

No response

Bug Report: shortcuts not removed after uninstall

Is there an existing issue for this?

  • I have searched the existing issues (both open and closed).

What happened or didn't happen?

When uninstalling, the shortcut icon is not removed.

Steps To Reproduce

No response

Version

0.9.0

Windows Version

(all updates) Microsoft Windows 10.0.22621

Relevant log output

No response

Anything else?

No response

Enhancement Request

Brief summary of your request

Minimize on exit

Request details

Can you add option to minimize window when clicking -close window [X] -

Anything else?

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.