473,320 Members | 2,035 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,320 software developers and data experts.

Callers IP

Hi,
I need to create a web service that returns to the caller his IP. I have
done this in the past for callres taht are running ASP.NET but not from a
winform (VB.NET) app. I have read in oter forms that this can not be done?
Any ideas?
Thanks!
George.
Nov 23 '05 #1
2 1352
George,

Try this -

[WebMethod]
public string getIPString()
{
string ipAddress = Context.Request.UserHostAddress;
}

Regards,
Ajit

"George D, Lake" wrote:
Hi,
I need to create a web service that returns to the caller his IP. I have
done this in the past for callres taht are running ASP.NET but not from a
winform (VB.NET) app. I have read in oter forms that this can not be done?
Any ideas?
Thanks!
George.

Nov 23 '05 #2
George,

Try this -

[WebMethod]
public string getIPString()
{
string ipAddress = Context.Request.UserHostAddress;
}

Regards,
Ajit

"George D, Lake" wrote:
Hi,
I need to create a web service that returns to the caller his IP. I have
done this in the past for callres taht are running ASP.NET but not from a
winform (VB.NET) app. I have read in oter forms that this can not be done?
Any ideas?
Thanks!
George.

Nov 23 '05 #3

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

Similar topics

1
by: Gary Esser | last post by:
I'm in the process of moving a large VC++ 6.0 project to .NET 2003, and I can't find equivalent functionality to the old IDE's "Callers Graph". Also, I can't figure out how to display in a tree...
4
by: g3000 | last post by:
I developed on a Win2K3 Server with VS 2005 Published a web app to my local drive. Copied that folder to a Win2K3 Server. Configured a new virtual directory Moved the files there. Modified...
1
by: Pierre | last post by:
Hi all, I have developped a set of WSs and everything works fine when I try it on my local network. When I export them on my host's server though I get the following error on my client: ...
1
by: Mantorok | last post by:
Hi all Is there a good generic way of handling pages that need to redirect back to their callers? If I have a page that includes, say, a link to another page, when that other page has finished...
4
by: =?Utf-8?B?bWFyY21j?= | last post by:
Hi, I've just deployed my application which I ported from VS.Net 2003 to VS.Net 2005 and also from SQLServer to Teradata. When I put the executable on the network it won't run. The error is...
2
by: Vandana T | last post by:
I created a console application to read and manipulate an Excel file. I added reference to the Microsoft Excel 11.0 Object Library. When I place it in Network Drive and try to run the .exe from my...
1
by: Matt Culbreth | last post by:
Hello All, I've got a very simple ASP.NET 2.0 application which uses a DLL from a third party. I don't have the source to this DLL. Everything has been working fine on my XP development...
5
by: =?Utf-8?B?TWFydHluIEZld3RyZWxs?= | last post by:
From the amount of articles about this one I’m sure this gets asked a lot, but I haven’t yet found a succinct article which explains what is required in its entirety. I work using Visual...
1
by: John G | last post by:
I have created an ActiveX control that does word automation. Once I creat an instance of work I get the following message System.Security.SecurityException: That assembly does not allow partially...
1
by: nish85 | last post by:
Hi, i have uploaded my sit to web server goddady.com i have a button to download dyanmically generated excel file.This button is ajax enabled.....When i am click on this button it will popup a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.