Question: I am creating two docker containers one front end and another one is .net core API. But when i call the API from the front end, I am getting an exception as follows,

> 
> SocketException: Cannot assign requested address
>  System.Net.Http.ConnectHelper.ConnectAsync(string host, int port, CancellationToken cancellationToken)
> 
> 
> HttpRequestException: Cannot assign requested address
>  System.Net.Http.ConnectHelper.ConnectAsync(string host, int port, CancellationToken cancellationToken)
> 
> 
> 

I have also added a docker compose file to enable multi-container deployment but of no use. This is yml file as follows,

```

services:
  dockerdemofrontend:
    image: ${DOCKER_REGISTRY-}dockerdemofrontend
    build:
      context: .
      dockerfile: DockerDemoFrontEnd/Dockerfile

  dockerdemoapi:
    image: ${DOCKER_REGISTRY-}dockerdemoapi
    build:
      context: .
      dockerfile: DockerDemoAPI/Dockerfile

```

I am feeling like those two networks are different. We need to do something in order to get these two talking. Please help me in this regard.

Answer: 
I had this error with a clean install on MacOS X (Mojave), and after trial and error discovered that the main user who is running flutter debug needs to be an admin user.

Clue was the line:

```
log: Must be admin to run 'stream' command

```

when running from command line.

After this VS Code and command line work.
I ended reinstalling flutter sdk.

Ubuntu 16.04
VSCODE