Sometimes my port mapped Lantern flashlight server gets registered with a port of 0
I've seen this happen a few times now. When it happens, the Fastly configuration fails to apply because 0 is an invalid port.

The zero is being reported by the client:
6380 2014-06-26 10:22:56,906 DEBUG [NAT-PMP-Mapping-Thread] pt.FlashlightServerManager.onEnter (FlashlightServerManager.java:200) - I'm port mapped at 66.69.242.177:58934<->0
Well, I haven't figured out how to avoid getting a 0 port, but I updated the client not to use mappings with invalid ports (<=0 or > 65535) and also updated peerdnsreg to not accept registrations with invalid ports. That at least keeps this from breaking our Fastly configuration, so this issue becomes a little less urgent.
Lets keep this open for a bit, as it's possible a 0 indicates some error case we're not properly accounting for from either UPnP or NAT-PMP.
On Thursday, June 26, 2014, oxtoacart [email protected] wrote:
Well, I haven't figured out how to avoid getting a 0 port, but I updated the client not to use mappings with invalid ports (<=0 or > 65535) and also updated peerdnsreg to not accept registrations with invalid ports. That at least keeps this from breaking our Fastly configuration, so this issue becomes a little less urgent.
— Reply to this email directly or view it on GitHub https://github.com/getlantern/lantern/issues/1628#issuecomment-47265688.
Adam pgp A998 2B6E EF1C 373E 723F A813 045D A255 901A FD89
@myleshorton @oxtoacart safe to close this now?
Yes, closing.