App in container cannot connect with apps in host machine

  1. I cannot connect two console app with tcp (client in windows container, server in host system). Try use 9500 port, ip: 172.18.112.1, 195.133.48.168, 127.0.0.1, their combinations

  2. I don’t know how connect this applications if put them to containers. (what should be ip to connect, what should be settings)

  3. Application in container can’t download html content from IIS server in host system (try c# class WebClient)

If tcp_client app will be in docker container, tcp-server will be on another vps-machine, they can connect.

Sorry for my english.

ipconfig /all

   Windows IP Configuration

   Host Name . . . . . . . . . . . . : WIN-DQ6YXEM6NAH
   Primary Dns Suffix  . . . . . . . : 
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Ethernet 5:

   Connection-specific DNS Suffix  . : 
   Description . . . . . . . . . . . : Microsoft Hyper-V Network Adapter #5
   Physical Address. . . . . . . . . : 02-0C-5D-00-40-50
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   IPv4 Address. . . . . . . . . . . : 195.133.48.168(Preferred) 
   Subnet Mask . . . . . . . . . . . : 255.255.254.0
   Default Gateway . . . . . . . . . : 195.133.48.1
   DNS Servers . . . . . . . . . . . : 8.8.8.8
                                       77.88.8.8
   NetBIOS over Tcpip. . . . . . . . : Disabled

Ethernet adapter vEthernet (HNS Internal NIC):

   Connection-specific DNS Suffix  . : 
   Description . . . . . . . . . . . : Hyper-V Virtual Ethernet Adapter
   Physical Address. . . . . . . . . : 00-15-5D-39-55-F2
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   IPv4 Address. . . . . . . . . . . : 172.18.112.1(Preferred) 
   Subnet Mask . . . . . . . . . . . : 255.255.240.0
   Default Gateway . . . . . . . . . : 
   NetBIOS over Tcpip. . . . . . . . : Disabled

Tunnel adapter isatap.{BA519048-9064-4F74-9C2F-1D82CA0791A5}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : 
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{CE948E91-0335-4896-8D88-D32D807D7D77}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : 
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

This forum is not an official product support or issue reporting channel.