473,386 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

how to get a client ip address by webserver?

ysu
HI, I have a application need call a webserver, I want know who is call the
webserver, how to do?
Nov 23 '05 #1
3 4396
Hi ysu,

you can use Request.UserHostAddress or
Request.ServerVariables["REMOTE_ADDR"] to retrieve the IP of the client.

Regards,

--
Martin Kulov
http://www.codeattest.com

MCAD Charter Member
MCSD.NET Early Achiever
MCSD

"ysu" <ys*@discussions.microsoft.com> wrote in message
news:88**********************************@microsof t.com...
HI, I have a application need call a webserver, I want know who is call the webserver, how to do?


Nov 23 '05 #2
ysu
HI, I try use Request.UserHostAddress and
Request.ServerVariables["REMOTE_ADDR"] , but I receive ip is the server, is
not client.

follow is my code:

<WebMethod()> _
Public Function HelloWorld() As String
Return Context.Request.ServerVariables("REMOTE_ADDR")
End Function
"Martin Kulov" wrote:
Hi ysu,

you can use Request.UserHostAddress or
Request.ServerVariables["REMOTE_ADDR"] to retrieve the IP of the client.

Regards,

--
Martin Kulov
http://www.codeattest.com

MCAD Charter Member
MCSD.NET Early Achiever
MCSD

"ysu" <ys*@discussions.microsoft.com> wrote in message
news:88**********************************@microsof t.com...
HI, I have a application need call a webserver, I want know who is call

the
webserver, how to do?


Nov 23 '05 #3
ysu


"Martin Kulov" wrote:
Hi ysu,

you can use Request.UserHostAddress or
Request.ServerVariables["REMOTE_ADDR"] to retrieve the IP of the client.

Regards,

--
Martin Kulov
http://www.codeattest.com

MCAD Charter Member
MCSD.NET Early Achiever
MCSD

"ysu" <ys*@discussions.microsoft.com> wrote in message
news:88**********************************@microsof t.com...
HI, I have a application need call a webserver, I want know who is call

the
webserver, how to do?


Nov 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Rationalman | last post by:
I'm new to ASP, and need to do something that should be straightforward. I want to access the database in my vbscript function on the serverside, when someone clicks a button on the cient side....
1
by: Dan Nash | last post by:
Hi guys Basically, I want to be able to print labels and invoices (via MS Word) for net orders, using our ASP site admin system. Heres the code I've come up with... <% Call...
1
by: Raquel | last post by:
Ours is the following configuration: Applications get triggered on Webserver; these applications connect to the DB2 connect gateway server (with DB2 Connect EE V 8.1 installed) and finally get...
1
by: Al | last post by:
hi, I am new to asp.net. I have a question about Marshelling b/w client browser and web server(database). I heared that it is better to minimize going back and forth b/w client browser and the...
4
by: James Cooke | last post by:
The clients that connect to my webserver all have a bunch of html files located on their hard drives, ie c:\myfiles\html1.htm c:\myfiles\html2.htm c:\myfiles\html3.htm c:\myfiles\html4.htm...
0
by: dinoo | last post by:
Can some body help me out? I am trying to use client certificates in a Webservice. But some how i am not able to make it. I went through the msdn resources but i think some one needs to help me...
3
by: dinoo | last post by:
I would appreciate if some one answers these queries. Thanks in advance. If My web server is SSL enabled, then why should I havea client certificate authentication? what extra security it...
1
by: Roger Hembury | last post by:
Hi All, Hope you can help / point me in the right direction with a little problem. I have a VB6 created active X dll which is downloaded to the client using <object> </object> so that I can...
40
by: navti | last post by:
I saw here http://java.sun.com/javase/6/docs/technotes/tools/share/jsdocs/index.html that javascript has built-in methods such as cp, dir, date etc how do i get these to run on the client...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.