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

failed to dial: dial tcp connectex: Only one usage of each socket address (protocol/network address/port) is normally permitted. #288

Open
mr05je opened this issue Jan 24, 2025 · 1 comment

Comments

@mr05je
Copy link

mr05je commented Jan 24, 2025

The error occurs when there are insufficient free ports on the machine.

How do I set a different ip for the session?

@Noooste
Copy link
Owner

Noooste commented Jan 27, 2025

Hello,
You can use the http.Transport inside the session, using session.Transport.
You can also assign a func(dialer *net.Dialer) error function to session.ModifyDialer to modify the dialer before the connection is established.

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