Category : network-programming

From the Docker documentation: –publish or -p flag. Publish a container’s port(s) to the host. –expose. Expose a port or a range of ports. –link. Add link to another container. Is a legacy feature of Docker. It may eventually be removed. I am using docker-compose with several networks. I do not want to publish any ..

Read more

I’m using TornadoWeb framework for python to set up my tcp server w/o thinking of sockets, threads, etc. It contains TCPServer.handler_stream(stream: IOStream, address: tuple[str, int]) from where i can get a hand on client’s IP address. It’s all good when running with host network (i.e. exposing my ports directly), but if i ever wish to ..

Read more

I’m trying to make a request from a python application to a gcs emulator in the docker-compose bridge network in docker for mac. When I tried, I found out that somehow the gcs client library is trying to make a request to the gcs emulator using IPv6 and failing because IPv6 is not supported by ..

Read more

I’ve been facing this issue since I installed Bitdefender a few weeks ago. I have their VPN running, and docker is able to communicate docker hub with the VPN turned off or with split tunneling. However, I am having problems with logging into GitHub and other accounts that need web logins with OAuth in the ..

Read more

I am writing a script to set up three elasticsearch nodes in Docker containers, but despite hours of debugging, I can’t seem to get the cluster to bootstrap. The nodes can’t connect to each other. From within each node container, I can ping the other nodes, but cURL fails (e.g. executing curl -v http://capes-elasticsearch-1:9200 from ..

Read more

I’m trying to get a .NET API to be able to connect to a Redis instance on my docker network. Here’s what I’ve got: Redis container: up and running on custom docker network my-network at localhost:6379 .NET service: trying to get up and running on custom docker network my-network (Maybe?) Relevant versioning: Abp.RedisCache 5.4.0 StackExchange.Redis ..

Read more

I’m trying to create a simple UDP Server/Client app in C# and dockerize the server; I’ve simplified the program for debugging Server: class Server { readonly static BroadcastReceiver recv = new BroadcastReceiver(); static void Main() { recv.StartReceive(); Console.WriteLine("Started"); while(true) { } } } class BroadcastReceiver { readonly UdpClient listener; public BroadcastReceiver() { // listen to ..

Read more