Add the possibility to set a fixed IP address to a trainer... #1
Replies: 9 comments 3 replies
|
Just to clarify that I understand this correctly:
In the current way the Wifi interface is implemented, the app always waits for an announcement, even if it would know the IP address. So it would require some code changes to suppress this mDNS query and directly try to access a device with well known IP (and port) |
|
Yes, all your assumption are correct. I try to keep these 2 network
separate and since I know the ip of the trainer I was surprised I could not
set its ip address straight in.
I would be happy to do that change in the code but since I neither know the
code nor Java (I am more like a C and Python guy) I am afraid I would not
do things right.
…On Sun, 23 Nov 2025 at 11:18, gdoumen ***@***.***> wrote:
Just to clarify that I understand this correctly:
- You want to use a SmartTrainer with DirectConnect (Wifi) Interface
- Your SmartTrainer is in a different network
- Is there some kind of routing between the networks ( the one you run
the app on, the one the SmartTrainer is connected to)? I.e. can you access
the IP of the SmartTrainer from the network running the app?
In the current way the Wifi interface is implemented, the app always waits
for an announcement, even if it would know the IP address. So it would
require some code changes to suppress this mDNS query and directly try to
access a device with well known IP (and port)
—
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/B2KHKTROSZ2DUBU35YDPNLD36GCWLAVCNFSM6AAAAACMMLO3UOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKMBVGE4TANA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
|
And I realise your last statement was a question more than an assumption.
Sorry. So yes, I can route one net to the other. I will try to keep that
restricted to the ip of the 2 involved devices (the trainer and the Linux
computer) and just the needed ports. My router is not good at doing
restricted mDNs relay. It’s all to all or none. So I would prefer avoiding.
Thanks for your answers and have a nice weekend
On Sun, 23 Nov 2025 at 11:36, christophe milard <
***@***.***> wrote:
… Yes, all your assumption are correct. I try to keep these 2 network
separate and since I know the ip of the trainer I was surprised I could not
set its ip address straight in.
I would be happy to do that change in the code but since I neither know
the code nor Java (I am more like a C and Python guy) I am afraid I would
not do things right.
On Sun, 23 Nov 2025 at 11:18, gdoumen ***@***.***> wrote:
> Just to clarify that I understand this correctly:
>
> - You want to use a SmartTrainer with DirectConnect (Wifi) Interface
> - Your SmartTrainer is in a different network
> - Is there some kind of routing between the networks ( the one you
> run the app on, the one the SmartTrainer is connected to)? I.e. can you
> access the IP of the SmartTrainer from the network running the app?
>
> In the current way the Wifi interface is implemented, the app always
> waits for an announcement, even if it would know the IP address. So it
> would require some code changes to suppress this mDNS query and directly
> try to access a device with well known IP (and port)
>
> —
> Reply to this email directly, view it on GitHub
> <#1 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/B2KHKTROSZ2DUBU35YDPNLD36GCWLAVCNFSM6AAAAACMMLO3UOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKMBVGE4TANA>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
|
I will look into this. I just recently had a similar case, where the MutliCastDNS was not delivering any annoncements after a router reboot. This will allow to connect to a device even if it is not announced via Mutlicast DNS. |
|
That would be great🙂. Yes i would manage that. I even git cloned the repo
yesterday, but got lost in the code…Java…😉
If you could tell me when i can try, or where to follow what’s done, i
would be very grateful .
Many thanks
Christophe
…On Thu, 27 Nov 2025 at 10:03, gdoumen ***@***.***> wrote:
I will look into this.
I just recently had a similar case, where the MutliCastDNS was not
delivering any annoncements after a router reboot.
I want to store the last known address of the device in the settings.json
file.
This will allow to connect to a device even if it is not announced via
Mutlicast DNS.
I'm not sure if I will add an option in the UI to manually enter the IP,
so you might have to manually add an entry to the settings.json, but that
should be doable if you have basic IT knowledge ( which I understand you
have)
—
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/B2KHKTRNYZJQPQVHWOBLHDD36245RAVCNFSM6AAAAACMMLO3UOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKMBZGQ3TOMI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
|
I have implemeted the changes. But I would like to test this first, before I make this globally available. Please send me your UUID (from Settings->Support) either via email or as a Slack DM. Then I can enable this feature for your UUID |
|
Hi.
I could not find the slack workspace to join or how to mail you privately.
Not sure it is a good idea to make my UID public... can you send a slack
URL (or a direct email address) please.
I also have bad news: yesterday I did the swiss ride (lado del sabuco) - I
had to rewire my net temporarily due to the mDns issue- but my Avanti Elite
trainer did not survive the ride and burned (smoked and sound very bad). I
guess it can still be used to check your changes (the motherboard seems to
boot), but it sounds very bad when ridden, so I guess I will have to be
without it for a while before I get it fixed (it is under guarantee). If I
get to test your changes before I return it, I will do it, otherwise, I
will do it as soon as possible afterwards.
Also, when testing the new feature, do I have to download a new Appimage (I
am under linux), or is the change going to be visible automatically (by
some Java magic :-)) .
Thanks for your answers,
/Chrisophe
Den fre 28 nov. 2025 kl 15:22 skrev gdoumen ***@***.***>:
… I have implemeted the changes. But I would like to test this first, before
I make this globally available.
Please send me your UUID (from Settings->Support) either via email or as a
Slack DM. Then I can enable this feature for your UUID
—
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/B2KHKTSXUEMLIX34MK2S2YT37BLDJAVCNFSM6AAAAACMMLO3UOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKMJQGYZDGOA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
|
@christophemilardspam-bot can I consider this discussion as closed? |
|
Sure. The only thing I wonder is when this new feature will come to the
main delivery, if not there yet. As mentioned, my trainer is on repair so I
didn’t have the chance to try… or if my uid will remain in your list so I
get it.
Thanks a lot for the quick response
…On Thu, 11 Dec 2025 at 15:23, gdoumen ***@***.***> wrote:
@christophemilardspam-bot <https://github.com/christophemilardspam-bot>
can I consider this discussion as closed?
—
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/B2KHKTWXHUAK72NPP4WEKN34BF46BAVCNFSM6AAAAACMMLO3UOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKMRTGE3TKNI>
.
You are receiving this because you were mentioned.Message ID: <incyclist/.
***@***.***>
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
My trainner is on another network... Can I do the mDNS job and put the trainner IP address, somewhere :-)
All reactions