Opened 6 years ago

Closed 23 months ago

#1417 closed defect (fixed)

Cannot use TCP when UDP is disabled for directly connected systems to public network with dynamic IP address autodetection

Reported by: DjJeshk Owned by: zzz
Priority: major Milestone: 0.9.40
Component: router/transport Version: 0.9.17
Keywords: Network UDP UPnP Disabled TCP IP detection failure Cc:
Parent Tickets: Sensitive: no


I2P version: 0.9.17-0
Java version: Oracle Corporation 1.7.0_71 (Java™ SE Runtime Environment 1.7.0_71-b14)
Wrapper version: 3.5.25
Server version: 8.1.16.v20140903
Servlet version: Jasper JSP 2.1 Engine
Platform: Windows XP x86 5.1
Processor: Core 2 (45nm) (core2)
Jbigi: Locally optimized native BigInteger? library loaded from file
Encoding: Cp1257
Charset: windows-1257

I2P report Network: ERR-UDP Disabled and Inbound TCP host/port not set.
My settings are as follows:

Enable UPnP to open firewall ports - disabled (there is no firewall)
Externally reachable hostname or IP address - Use all auto-detect methods
UDP Configuration - Completely disable
TCP Configuration - Use auto-detected IP address (currently unknown) if we are not firewalled

PS. Under text Specify hostname or IP it shows correct IP adress. Why this IP address is not auto-detected?


Change History (8)

comment:1 Changed 6 years ago by somewon

Status: newtesting

I think you just need to set a TCP port.

On look for "Externally reachable TCP port:" and enter a number between 1025 and 65535 in the box marked "Specify Port:". If that doesn't work, your router may not support UPnP and you may have to forward the port manually. Instructions for your router's make and model are probably available at (Apologies, no router in use)

Just curious, though - why disable UDP completely at all?

Last edited 6 years ago by somewon (previous) (diff)

comment:2 Changed 6 years ago by DjJeshk

First i have no router, my system is directly connected to provider network and whatever goes to my IP address it is processed by my system. Providing TCP port does not work. Providing IP address manually is not what I wan't.

Disabling UDP connections reduced message delay (now less than 100ms before it was approx 300ms) and I need to let anti DDoS driver to secure system against UDP flood. It is proven that incoming UDP flood (not filtered) affect UDP connections with router.

All that I2P router would need is to look at network adapter provided IP adress (it is also public at my case) and use it. Windows users can execute ipconfig and correct information comes up.

Last edited 6 years ago by DjJeshk (previous) (diff)

comment:3 Changed 6 years ago by somewon

Status: testingneeds_work

comment:4 Changed 5 years ago by zzz

Component: router/generalrouter/transport

It's true, SSU does the address detection for NTCP.

The message delay calculation is semi-broken see #698

See also #1835

For a direct, public IP, NTCP should get the notification at startup. Will need to test/reproduce.

comment:5 Changed 2 years ago by zzz

Owner: set to zzz
Status: needs_workaccepted

The changes in #2328 for NTCP1 disable option may have made this worse.
It's not getting the callback from UPnP.
And we still get the ERR-UDP Disabled and Inbound TCP host/port not set.
Going to try to fix this for 39 as the i2p zero folks may want to disable SSU.

comment:6 Changed 2 years ago by zzz

Preliminary work in cfacc0fc72bfcbbcdcd92a2631d97ec7c83f9213 0.9.38-8
more to follow

comment:7 Changed 2 years ago by zzz

Milestone: 0.9.390.9.40

Reports that things don't work at all if NTCP 1 is disabled at the same time. Need to finish this before disabling NTCP 1 by default.

comment:8 Changed 23 months ago by zzz

Resolution: fixed
Status: acceptedclosed
  • publish new RI via NTCP when SSU disabled
  • better network statuses returned from NTCP when SSU disabled
  • update event log from NTCP when SSU disabled

Minor issues like some event logging for changed IP may remain but this is the bulk of it.

In 28aae4d619aa86d2c802b5693e99497f456be1bc 0.9.39-7

Note: See TracTickets for help on using tickets.