Listen IP for port forward


Ulrar

Recommended Posts

Hi,

 

Is there a way to specify the IP to bind a port forward to when creating a container ? They seem to always use 0.0.0.0.

I have an issue with a container generating a bunch of errors when my router scan the ports, I'd like to just bind it to 127.0.0.1 since the only thing using that port is running in another container in host mode anyway, it doesn't need to be exposed to the network.

I've tried putting 127.0.0.1 in the Port setting, but it looks like . and : are not valid characters in there.

 

I've used the extra parameters field to specify the -p myself for now, which works fine, just wondering if there's a way using the normal Port config option.

 

Sorry if I'm missing something obvious, I'm new to unraid.

Thanks

Edited by Ulrar
Adding workaround
Link to comment

I'm not quite sure if I'm really understanding your question...

 

Externally (for your router), the exposed ports are always running to the IP address of your Unraid-Server, and are then either passed through (in case of a Bridge or custom-br network setup) or run directly to the docker (in case of aHost network setup).

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.