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..
ddiproAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

omarfaridCommented:
Try to see if the following functions:


getipnodebyname / getipnodebyaddr
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual C++.NET

From novice to tech pro — start learning today.