473,402 Members | 2,064 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,402 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 1355
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.