Not that I know of. HTTP uses TCP connections, so why don't you want to use it? Sounds like you are trying to solve the wrong problem.
this post was submitted on 29 Sep 2021
4 points (100.0% liked)
Asklemmy
44672 readers
1492 users here now
A loosely moderated place to ask open-ended questions
Search asklemmy ๐
If your post meets the following criteria, it's welcome here!
- Open-ended question
- Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
- Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
- Not ad nauseam inducing: please make sure it is a question that would be new to most members
- An actual topic of discussion
Looking for support?
Looking for a community?
- Lemmyverse: community search
- sub.rehab: maps old subreddits to fediverse options, marks official as such
- [email protected]: a community for finding communities
~Icon~ ~by~ ~@Double_[email protected]~
founded 5 years ago
MODERATORS
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.
dig +short myip.opendns.com @resolver.opendns.com
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