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

unable to establish connection with server using custom ports #75

Open
Devloper-RG opened this issue Sep 3, 2024 · 6 comments
Open

Comments

@Devloper-RG
Copy link

My server(s2s_pipeline.py) is running fine on a GCP VM, have changed all recv_port and send_port on "listen_and_play.py" script, but on running "python listen_and_play.py --host " on my local system i am unable connect and make request to the server and getting following error:
getting error-

Traceback (most recent call last):
  File "S:\speech-to-speech-main\listen_and_play.py", line 126, in <module>
    listen_and_play(**vars(listen_and_play_kwargs))
  File "S:\speech-to-speech-main\listen_and_play.py", line 42, in listen_and_play
    send_socket.connect((host, send_port))
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

Note: the ports I am using is configured on firewall rules on my VM.

pls help me with establishing connection and making request to server via my windows system.

@rs545837
Copy link
Collaborator

rs545837 commented Sep 6, 2024

The default ports, 12345 and 12346 needs to be exposed on your gcp instance, to connect it with the local client.

Did you expose the ports?

@Devloper-RG
Copy link
Author

I successfully exposed the predefined ports (12345 and 12346) and was able to interact with the server. However, I would now like to use new ports. What changes are required in the configuration/code to allow the server to run on different ports?

@rs545837
Copy link
Collaborator

rs545837 commented Sep 9, 2024

Use the --recv_port and --send_port arguments for using ports other than 12345 and 12346.

@Devloper-RG
Copy link
Author

I tried this but was unable to interact with the server.

@rs545837
Copy link
Collaborator

rs545837 commented Sep 11, 2024

Hey @Devloper-RG, could you please send the terminal commands that you have been using on the server and client? I may be able to help you better.

@Devloper-RG
Copy link
Author

Devloper-RG commented Sep 17, 2024

Hey @rs545837
These are my terminal commands that i used
client side : python listen_and_play.py --host IP address --send_port 3001 --recv_port 3002
server side : python s2s_pipeline.py --recv_host 0.0.0.0 --send_host 0.0.0.0

and i also made sure these ports were exposed on my gcp instance

@Devloper-RG Devloper-RG changed the title unable to establish connection and making a request to server unable to establish connection with server using custom ports Sep 19, 2024
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