how can I bind to my own domain? TcpListener::bind("own_domain") #6824
Unanswered
julialember
asked this question in
Q&A
Replies: 1 comment 4 replies
-
You do not bind to a domain. You can either bind to a specific interface, or to all interfaces. Usually you only have two interfaces: localhost and your internet connection, but if you're connected over both ethernet and wifi you might have three interfaces. Binding to |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Recently I got my own domain (let's say "example.online") and I had a desire to write a server part for my application with
let listener = TcpListener::bind("example.online").await.unwrap();
but instead of bind it gives me an error:
called
Result::unwrap()on an
Errvalue: Os { code: 49, kind: AddrNotAvailable, message: "Can't assign requested address" }
Is it possible to somehow fix this? I have a hosting and a DNS server, the сite itself works fine if connect to it on the Internet, but for some reason the binding does not work
Beta Was this translation helpful? Give feedback.
All reactions