Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using local ip address when making a request #809

Open
sergeysolovev opened this issue Sep 10, 2024 · 2 comments
Open

Using local ip address when making a request #809

sergeysolovev opened this issue Sep 10, 2024 · 2 comments

Comments

@sergeysolovev
Copy link

Haven’t found this in the docs, is it possible to specify a local ip address (or NIC) when making a request? Would be lovely to have this feature

@algesten
Copy link
Owner

Hm…. We're just using Rust std TcpStream::connect, wonder if there is some way to do this in Rust?

@sergeysolovev
Copy link
Author

Looks like it’s possible but idk how exactly, at least reqwest have this option https://docs.rs/reqwest/latest/reqwest/blocking/struct.ClientBuilder.html#method.local_address

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants