JMRI icon indicating copy to clipboard operation
JMRI copied to clipboard

Better way to display IP address(es), plus what servers are running on what ports

Open mstevetodd opened this issue 1 year ago • 10 comments
trafficstars

See https://groups.io/g/jmriusers/topic/108041262 for some background.

Currently, many users use the WiThrottle window to determine the hostname and IP that JMRI is running on, as well as the WiThrottle port.

  1. The WiThrottle UI uses the list of IPs from zeroconf for this display, so if anything prevents the zeroconf from working, it also affects this display. I believe this can be fixed by replacing the logic in WiThrottle.UserInterface.addIPAddessesToUI() with that in mailreport.ReportContext.addNetworkInfo(). Basically, get the ip list from networkInterface.getInetAddresses() instead of zeroconf.

  2. A common request is to add a window to show that the WebServer is running, and what port it is running on.

  3. The Help, Context window shows all of this, but not in a user-friendly format.

Suggestion (for discussion): Add a new Help menu item "Network Servers"? which displays a list of the running servers and the port# for each, as well as a list of IP addresses and hostname for the current server. --OR-- Add this information to the PanelPro main window in the area currently showing "Active Profile", etc.

mstevetodd avatar Aug 23 '24 16:08 mstevetodd

Add a new Help menu item "Network Servers"? which displays a list of the running servers and the port# for each, as well as a list of IP addresses and hostname for the current server.

I vote for this. It would be good if that window also has a startup action so that it can be opened when JMRI starts.

danielb987 avatar Aug 23 '24 16:08 danielb987

The IP information also needs to be available when running DecoderPro. Some people run WiThrottle with DecoderPro.

Dave Sand

----- Original message ----- From: Daniel @.> To: JMRI/JMRI @.> Cc: Subscribed @.***> Subject: Re: [JMRI/JMRI] Better way to display IP address(es), plus what servers are running on what ports (Issue #13370) Date: Friday, August 23, 2024 11:23 AM

Add a new Help menu item "Network Servers"? which displays a list of the running servers and the port# for each, as well as a list of IP addresses and hostname for the current server.

I vote for this. It would be good if that window also has a startup action so that it can be opened when JMRI starts.

— Reply to this email directly, view it on GitHub https://github.com/JMRI/JMRI/issues/13370#issuecomment-2307411187, or unsubscribe https://github.com/notifications/unsubscribe-auth/AED27YCUVIDGHRJTS7MAV7DZS5OZLAVCNFSM6AAAAABNAONA5KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBXGQYTCMJYG4. You are receiving this because you are subscribed to this thread.Message ID: @.***>

dsand47 avatar Aug 23 '24 16:08 dsand47

The Wi-Throttle window should show all connections it is listening on. Users are used to looking at that to know what their phones should connect to when the normal by name isn't working.

KenC57 avatar Aug 23 '24 23:08 KenC57

The Wi-Throttle window should show all connections it is listening on. Users are used to looking at that to know what their phones should connect to when the normal by name isn't working.

This is not changing.

mstevetodd avatar Aug 24 '24 00:08 mstevetodd

  1. has been merged.

mstevetodd avatar Aug 24 '24 19:08 mstevetodd

Proposal: Add a "Zeroconf working" status? Otherwise people (=me ;) ) may wonder "I can see the IP address but my client won't autodetect the server".

Or do you think this will confuse users more than telling them "just type the IP into the client if it does not autodetect"?

Heiko

newHeiko avatar Sep 05 '24 22:09 newHeiko

A suggestion is to add "autodiscover" to the message:

Zeroconf (autodiscover) is up. Zeroconf (autodiscover) is down.

danielb987 avatar Sep 05 '24 22:09 danielb987

I could see stating "zeroconf (autodiscover) started" but there's no way to know "working". That depends on the network and the client(s).

mstevetodd avatar Sep 05 '24 23:09 mstevetodd

If you don't get an exception, assume everything is working good.

danielb987 avatar Sep 06 '24 00:09 danielb987

This issue is stale because it has been open for 45 days with no activity.

github-actions[bot] avatar Oct 21 '24 02:10 github-actions[bot]

This issue was closed because it has been inactive for 30 days since being marked as stale.

github-actions[bot] avatar Nov 25 '24 02:11 github-actions[bot]