I have trio.serve_tcp(proxy_handler, PORT)
but what I need is trio.serve_tcp(proxy_handler, PORT, host="192.168.1.46")
however trio does not support keyword arguments to its serve_tcp
function. How can I listen on a specific IP address? I need this to allow port forwarding through my hub/switch to my local IP. What trio is doing is listening on IP 0.0.0.0 and :: which does not allow incoming connections to a port forwarded to 192.168.1.46 and I cannot put 0.0.0.0 in my router ssetup.Maybe a lambda can help in the hot field but I don’t know how to do this. Any help would be much appreciated even if it is not what I want to hear. ty
I tried listing on IP 0.0.0.0 and expected it to accept connections on all IPs on my machine which would be my local IP address only even if the local ip changed or expired.