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 connect to frog #17

Open
WillSkywalker opened this issue Jul 19, 2021 · 1 comment
Open

failed to connect to frog #17

WillSkywalker opened this issue Jul 19, 2021 · 1 comment

Comments

@WillSkywalker
Copy link

WillSkywalker commented Jul 19, 2021

failed to open Frog connection: localhost:7001
Reason: invalid socket : ClientSocket: Connection on localhost:5 failed (Connection refused)

I get this error repeatedly with all the dependencies running on correct ports. Why would the program attempt to connect to port 5?

@kosloot
Copy link
Collaborator

kosloot commented Jul 31, 2021

Well, I am not quiet sure who maintains TScan at the moment, but this message is generated by the SocketBasics module in ticcutils. And I know a few details of that module:
The number 5 is NOT the port number, but the Socket number of connection opened to port 7001
This means that the initial steps steps were already successful:

  • an address of localhost and port 7001 was successfully resolved.
  • a Socket with number 5 was created.

But then an attempt to connect() to that socket fails.

It is quite difficult to determine what goes wrong.

As a first check you could do is trying to use telnet to connect directly to Frog:
so use the command:
telnet localhost 7001

This should trigger a response from Frog like this:

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

If Frog isn't running you will get:

Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused

That would at least give a hint about Frog working OK.

Note: In a few odd occasions I have seen that you must use localhost:localhost 7001

Next thing to do is checking the FrogServer logfile.
probably it is named /tmp/frog-tscan.log

That too should hint on Frog really working ok.

Good luck

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