Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Finding out actual TCP/IP address

Reply
Thread Tools

Finding out actual TCP/IP address

 
 
UJ
Guest
Posts: n/a
 
      08-27-2006
Is there any way for a web service to find out what the TCP/IP address was
that was used to 'call in' to it? I have a C# program that's calls to a web
service and I want the web service to know the actual TCP/IP address that
was used. If I get it from the machine and send it to the webservice via the
program and you are behind a firewall/gateway/hub, you don't get the real
web address. I'd like the real honest to goodness TCP/IP address.

Any ideas?

TIA - Jeff.


 
Reply With Quote
 
 
 
 
John Saunders
Guest
Posts: n/a
 
      08-28-2006
"UJ" <> wrote in message
news:...
> Is there any way for a web service to find out what the TCP/IP address was
> that was used to 'call in' to it? I have a C# program that's calls to a
> web service and I want the web service to know the actual TCP/IP address
> that was used. If I get it from the machine and send it to the webservice
> via the program and you are behind a firewall/gateway/hub, you don't get
> the real web address. I'd like the real honest to goodness TCP/IP address.


Sorry, it can't be done.

John


 
Reply With Quote
 
 
 
 
John Saunders
Guest
Posts: n/a
 
      08-28-2006
"UJ" <> wrote in message
news:...
> Is there any way for a web service to find out what the TCP/IP address was
> that was used to 'call in' to it? I have a C# program that's calls to a
> web service and I want the web service to know the actual TCP/IP address
> that was used. If I get it from the machine and send it to the webservice
> via the program and you are behind a firewall/gateway/hub, you don't get
> the real web address. I'd like the real honest to goodness TCP/IP address.


Let me amend my previous reply.

It can be done - if you ask the client to give you its IP address. But you
can't just get it from the network.

John


 
Reply With Quote
 
UJ
Guest
Posts: n/a
 
      08-28-2006
John,
If I get the TCP/IP address at the client end, it will get the local TCP/IP
address right (behind firewall, ....) ? Not the one that it's using over the
network right?

TIA - Jeff.

"John Saunders" <john.saunders at trizetto.com> wrote in message
news:...
> "UJ" <> wrote in message
> news:...
>> Is there any way for a web service to find out what the TCP/IP address
>> was that was used to 'call in' to it? I have a C# program that's calls to
>> a web service and I want the web service to know the actual TCP/IP
>> address that was used. If I get it from the machine and send it to the
>> webservice via the program and you are behind a firewall/gateway/hub, you
>> don't get the real web address. I'd like the real honest to goodness
>> TCP/IP address.

>
> Let me amend my previous reply.
>
> It can be done - if you ask the client to give you its IP address. But you
> can't just get it from the network.
>
> John
>
>



 
Reply With Quote
 
John Saunders
Guest
Posts: n/a
 
      08-28-2006
"UJ" <> wrote in message
news:...
> John,
> If I get the TCP/IP address at the client end, it will get the local
> TCP/IP address right (behind firewall, ....) ? Not the one that it's using
> over the network right?


Right. And that's as much the "real" IP address as any you're likely to get.

Whether this is useful to you depends on what you're trying to do. If you're
trying to uniquely identify the client, IP address isn't a good way to do
that, as it can change.

John


 
Reply With Quote
 
Heron
Guest
Posts: n/a
 
      08-30-2006
this.Context.Request.UserHostAddress

....this maybe, just guessing here



"John Saunders" <john.saunders at trizetto.com> schreef in bericht
news:ORZr%...
> "UJ" <> wrote in message
> news:...
>> John,
>> If I get the TCP/IP address at the client end, it will get the local
>> TCP/IP address right (behind firewall, ....) ? Not the one that it's
>> using over the network right?

>
> Right. And that's as much the "real" IP address as any you're likely to
> get.
>
> Whether this is useful to you depends on what you're trying to do. If
> you're trying to uniquely identify the client, IP address isn't a good way
> to do that, as it can change.
>
> John
>
>



 
Reply With Quote
 
John Saunders
Guest
Posts: n/a
 
      08-30-2006
"Heron" <> wrote in message
news:...
> this.Context.Request.UserHostAddress
>
> ...this maybe, just guessing here


Did you read the thread? That property will return the address of the
firewall, NAT box or other Network-layer device. It will not, in general,
return you something of value, depending on what "value" you want. This
value will not be much good at identifying a particular PC if all the PCs in
the company access the Internet through the same firewall, so that they all
have the same address.

John


> "John Saunders" <john.saunders at trizetto.com> schreef in bericht
> news:ORZr%...
>> "UJ" <> wrote in message
>> news:...
>>> John,
>>> If I get the TCP/IP address at the client end, it will get the local
>>> TCP/IP address right (behind firewall, ....) ? Not the one that it's
>>> using over the network right?

>>
>> Right. And that's as much the "real" IP address as any you're likely to
>> get.
>>
>> Whether this is useful to you depends on what you're trying to do. If
>> you're trying to uniquely identify the client, IP address isn't a good
>> way to do that, as it can change.
>>
>> John
>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding out the users IP Address behind NAT Adam The Generic ASP .Net 8 04-09-2009 09:16 PM
How to get the actual address of a object mujunshan@gmail.com Python 5 10-24-2008 08:53 PM
Finding out who's IP address has accessed my account. TerryNC Computer Support 5 07-25-2007 10:06 PM
How do I hide my actual e-mail address and name? Joanne M. Milne Computer Support 6 09-12-2004 08:34 PM
Finding Actual Directory WebClient is loading page from? Earl Teigrob ASP .Net 2 06-09-2004 09:43 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57