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

Connect to a server with a specific interface #198

Open
jadiaheno opened this issue Dec 2, 2024 · 4 comments
Open

Connect to a server with a specific interface #198

jadiaheno opened this issue Dec 2, 2024 · 4 comments

Comments

@jadiaheno
Copy link

Hi,

Is there a way to make the piko agent connect to the server with a specific interface? My use case is that the server is available only through the LAN interface, not WIFI.

Im happy to open a PR.

Thanks.

@andydunstall
Copy link
Owner

andydunstall commented Dec 3, 2024

Hey @jadiaheno, thanks for opening this issue

Shouldn't Linux select the correct interface automatically in that case?

If not, would an optional --connect.bind-addr work for you, such as specify --connect.bind-addr 192.168.1.100 to select the interface (and optional port)?

Your welcome to have a go yourself (I can suggest what parts of the agent need updating), or I can add this weekend

@jadiaheno
Copy link
Author

Hey @andydunstall, thanks for your quick answer.

An optional --connect.bind-addr would work. Can you tell me where to add it?

Thanks.

@andydunstall
Copy link
Owner

Sure, so:

As mentioned I'm happy to add this weekend as it will require changes to quite a lot of places, up to you

@andydunstall
Copy link
Owner

@jadiaheno are you still planning to work on this?

Otherwise if it's not needed can I close this issue?

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