Skip to content

Tag: ip

Address already in use – FastAPI

I keep getting [Errno 98] Address already in use But the address is not in use. I tried to change the ip and port but It isn’t budging. uvicorn main:app –reload also tried uvicorn main:app –host=172.0.0.2 –port=5000 then it gives [Errno 99] error while attempting to bind on address (&#…

Multiple ip on same interface in Docker container

Is that possible to have multiple IPs on eth0 in a Docker container? I would like having 5 IPs on eth0 in a Docker container interface. I am using “ip” utility. Executing ip address add 172.20.0.200/16 dev eth0 in the container give “Operation not permited. I tried manually log to the contai…

Detect IP-Address change on an interface

I would like to trigger a service when a change of an ip address on a specific interface occurs. Is there a target for this or some other method I am not aware of to achieve this using systemd on Linux (Kernel 3.19)? The service would be used to send a SIGNAL to a defined process. The Linux is running

source IP in multihomed client host while bind is called

Which is the source IP address in tcp socket if bind is called on a multihomed client host? Client has two interfaces eth0(IP0) and eth1(IP1) and the client tcp socket is bound to IP0. After socket, bind, connect in client, it sends a packet to server.The destination IP isservIP. But servIP and IP0 are not in…