Assign port to already running LXC containers


I’d like to know whether is it possible to assign port to already running containers? If thats not feasible,
can we stop and restart container with new ports? thanks


If you are using LXD (version 3.0 or newer), then you can create a proxy device to forward TCP ports. No need to restart the container when you add/remove proxy devices.
See this post for more,

thanks, will follow those steps.