• 1 Post
Joined 1Y ago
Cake day: Aug 28, 2021


I’m enjoying this. Thanks!

  • DuckDuckGo is a honey pot produced by G**gle for privacy kiddies.
  • USA authority can decrypt T*r network by military technology going more than 50 years ahead of civil.
  • L*mmy devs made le**y to brainwash Americans into killing capitalism.
  • G*d is dead.
  • I’ll get miracle p*wer after 666 downvotes.

I could get my client’s IP address by your method. I didn’t know such a dns server echoing IP addresses. Thanks, info! Btw, I couldn’t reach resolver.opendns.com. So I used this:

dig +short myip.opendns.com @resolver1.opendns.com
dig +short myip.opendns.com @resolver2.opendns.com

My client must send data like ‘GET /ip HTTP/1.1\r\n…’ after connecting for HTTP servers to get wanted responses. I want to use TCP without HTTP because I want to reduce the data.

Is there any public TCP service that echoes IP addresses? Not HTTP service
I want to check my network client's IP address. If the client uses HTTP, I can get its IP address by letting it connect http://ipinfo.io/ip or the like. But I want to prevent it from using HTTP. Is there any TCP service (server) that acts like http://ipinfo.io/ip but doesn't require HTTP? For example, I want a server running this python script forever: ``` import socket EXAMPLE_PORT = 50007 with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) s.bind(('', EXAMPLE_PORT)) s.listen(1) while True: conn, addr = s.accept() with conn: conn.sendall(addr[0].encode()) ``` And I want to run the next python script as my client to get its IP address: ``` import socket EXAMPLE_SERVER = 'theserver.xyz' with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: s.connect((EXAMPLE_SERVER, 50007)) data = s.recv(1024) print("my client's IP address:", repr(data)) ``` Notes: * I can make the server myself. But I want to know public service if it already exists. * My client runs on hosts that I don't know their IP addresses.

this subreddit.

This is just what you want to say, isn’t it?
# I’m so serious! :D


# Don’t be serious please! :D

Because lemmy is tor user friendly at the moment. What about in the future?