471,354 Members | 1,284 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

windows service for downloadinf files from serwer

Hi,
I'm trying to write windows service that sending files from server to
client. This service will work on serwer side.How windows service on
server side can get client address? Is it possible to realize it?

Jan 16 '06 #1
3 1262
mamin,

It depends on the technology you are using. Some technologies will
allow you to gather the ip address of the client from your underlying
connection.

However, why not just have the client, when it connects to you give you
that information?

Of course, if the client connects to you, you can always just send the
file over that connection, you should't need to know the specific address
because you already have a connection.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"mamin" <ma**************@vp.pl> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Hi,
I'm trying to write windows service that sending files from server to
client. This service will work on serwer side.How windows service on
server side can get client address? Is it possible to realize it?

Jan 16 '06 #2
The client visiting by web page (asp.net page) and there he giving the
order to send him some files.It will be writing to database and then my
windows service should start to send this files to the client.So I need
to create new connection, but how can I get client address when I have
a connection with him (while he is connecting by asp.net page)

Jan 16 '06 #3
mamin,

You can't do this through ASP by default. You will not be able to
establish a connection back to the client as the default user for ASP
(ASPNET) doesn't have access to the network.

Even if you could, the client would have to have special software
installed on their side to open up the socket, and interpret the data you
are going to send to them.

You can get the IP address from the headers in the request.

Why not send the files through the HTTP Response, though?

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"mamin" <ma**************@vp.pl> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
The client visiting by web page (asp.net page) and there he giving the
order to send him some files.It will be writing to database and then my
windows service should start to send this files to the client.So I need
to create new connection, but how can I get client address when I have
a connection with him (while he is connecting by asp.net page)

Jan 16 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by dermot | last post: by
4 posts views Thread by ags5406 | last post: by
2 posts views Thread by =?Utf-8?B?dmlzaHJ1dGg=?= | last post: by
1 post views Thread by =?Utf-8?B?dmlzaHJ1dGg=?= | last post: by
5 posts views Thread by dm3281 | last post: by
reply views Thread by XIAOLAOHU | last post: by

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.