• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 283
  • Last Modified:

DNS AND NETWORK Client REQUEST IP

Hello Expert

   My Project is Network Solution and i am new in network progrraming.My problem..
  How to get DNS and request ip in vc++(6.0 or 5.0).I am geting DNS name but havn't get remote client request ip.It is very importent for me...Plz help me..
0
ddipro
Asked:
ddipro
  • 12
  • 6
1 Solution
 
omarfaridCommented:
Try to see if the following functions:


getipnodebyname / getipnodebyaddr
0
 
ddiproAuthor Commented:
Hi

   I am not geting your function any where sir?I am new on network programming,so give me more detail or some code plz
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
ddiproAuthor Commented:
But in think nothing about getipnodebyname / getipnodebyaddr. So how can i get this..
0
 
omarfaridCommented:
0
 
ddiproAuthor Commented:
Hello sir

  it is not woprking on vc++?Plz hepl me
0
 
ddiproAuthor Commented:
Hello sir

  it is working on Linux.So give me some tips of VC++..
0
 
ddiproAuthor Commented:
No one is there for my Question...?
0
 
omarfaridCommented:
Sorry, but I am searching for the equivelant functions and no luck so far.

0
 
ddiproAuthor Commented:
Ok But i need sir...........you give me Source code or tips...
0
 
omarfaridCommented:
I have seen in a book I have "Internetworking with TCP/IP Volume III Windows Sockets Version", that you can use the functions:

gethostbyaddr & gethostbyname

Please see:

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=2241&lngWId=3
http://johnnie.jerrata.com/winsocktutorial/
http://tangentsoft.net/wskfaq/resources/tutorials.html
http://www.yov408.com/html/tutorials.php?s=46
0
 
ddiproAuthor Commented:
Hello Sir
it's give error....I am try to do this each and exery one example but haven't found Client Ip at the request time.If possible then give me some Source code of Request Client Ip.Plz..
0
 
ddiproAuthor Commented:
Hi
      i think you havn't got my point.I want when Client open IEXPLORE that time Show Client IP and Dns Name.I have got DNS Name through DNSLOOKUP.But i havn't got Client IP.I think now You understand more better that fist one.
0
 
ddiproAuthor Commented:
I am waiting for your ans...
0
 
ddiproAuthor Commented:
Hello sir

  Where r u?
0
 
ddiproAuthor Commented:
You havn't my ans.........
0
 
omarfaridCommented:
I am sorry but I could not find an answer to your recent question.

If you think that this is not the answer you were expecting, then you may request to delete and refund the points.

0
 
ddiproAuthor Commented:

No problem ....
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 12
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now