My problem is which physical USB port I connected the Arduino cable to my D-Link DUB-H7 (USB hub) in Windows 10. I had an Arduino connected to one of the two ports on the right (in the image below) . The USB cable fits and it charges Arduino perfectly, but for some reason Arduino did not see the port.

Windows does not recognize these two ports. Any of the other ports is fair play. In my case, the Tools> Port menu was grayed out. In this case, the "Ports" section in the object explorer was hidden. To show hidden devices, I chose View> show hidden. Originally was COM1. When I changed it to COM3, it did not work.
There are many places where you can configure the COM port.
Windows> Control Panel> Device Manager> Ports> right-click Arduino> Properties> Port Settings> Advanced> COM Port Number: [select port]
Windows> Start Menu> Arduino> Tools> Ports> [select port]
Windows> Start menu> Arduino> File> Settings> @bottom, "Additional settings can be edited directly in the file."
C: \ Users {username} \ AppData \ Local \ Arduino15 \ preferences.txt
target_package = arduino target_platform = avr board = uno software=ARDUINO # Warn when data segment uses greater than this percentage build.warn_data_percentage = 75 programmer = arduino:avrispmkii upload.using = bootloader upload.verify = true serial.port=COM3 serial.databits=8 serial.stopbits=1 serial.parity=N serial.debug_rate=9600 # I18 Preferences # default chosen language (none for none) editor.languages.current =
The user preferences.txt overrides this:
C: \ Users {username} \ Desktop \ avrdude.conf
... search for "com" ... "com1" is the default
MacGyver Mar 31 '16 at 8:26 2016-03-31 08:26
source share