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

constructing a client socket on a client machine #42

Open
davejakenic opened this issue Aug 10, 2022 · 1 comment
Open

constructing a client socket on a client machine #42

davejakenic opened this issue Aug 10, 2022 · 1 comment

Comments

@davejakenic
Copy link

I kindly ask for help in replacing the following lines suitably, such that the server will see an incorrect client's IP address. The following creates a client_socket of type socket (aka, can listen, recv, and send).

client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client_socket.connect(ip_address_string_of_server,port_integer_of_server)
@davejakenic
Copy link
Author

davejakenic commented Aug 10, 2022

followings don't work:

attempt 1:

tor = TorClient()
circuit = tor.create_circuit(3)
client_socket = circuit.create_socket(ip_address_string_of_server,port_integer_of_server)

attempt 2:

tor = TorClient()
circuit = tor.create_circuit(3)
client_socket = circuit.socket(socket.AF_INET, socket.SOCK_STREAM)
client_socket.connect(ip_address_string_of_server,port_integer_of_server)

I wish there was a documentation

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

1 participant