Original Post
🔒 Locked
IP address
Advertisement
Quote:In general you'll have to ask someone with a public IP. This service for example.
Original post by H0bbes
I like to know if i can get IP address from Machine that is connected with Proxy?
Just to expand on doynax's answer, you'd need to open a socket to www.whatismyip.com on port 80, and send:
Where each line ends with a "\r\n" pair, and the whole thing ends with a blank line (so the last 4 chars are "\r\n\r\n")
Then read the input until you get "Your ip is ", and then read the next part for the IP.
You could also use a library to make this stuff easier, I believe hplusplus has a very small bit of code to do this. Have a look in the Multiplayer and Network Programming forum.
GET / HTTP/1.0Host: www.whatismyip.comConnection: CloseWhere each line ends with a "\r\n" pair, and the whole thing ends with a blank line (so the last 4 chars are "\r\n\r\n")
Then read the input until you get "
You could also use a library to make this stuff easier, I believe hplusplus has a very small bit of code to do this. Have a look in the Multiplayer and Network Programming forum.
Quote:Obviously confusingly worded.
Original post by H0bbes
I like to know if i can get IP address from Machine that is connected with Proxy?
Answer: no. Not unless they tell you. Some proxies will send headers that look like
X-Proxy-For: xxx.xxx.xxx.xxx
or something, but these are rare. really rare. nonexistant rare.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement