473,394 Members | 1,865 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,394 software developers and data experts.

client server query

Hello everybody..
i m thinking to develop an application in c# which enables transfer of file from server which ll be installed on remote computer to client(my computer)... now my query is how ll the server know that it has to send files to me(client) over internet.. can any1 explain me how this can be done with an code snippet .. hope i ll get a respone.. thanking you


//its a windows based application ..
Sep 27 '08 #1
6 1177
Curtis Rutland
3,256 Expert 2GB
Well, we can't give you a code snippet, because the question is a tad vague.

Is this a situation where a client will request a file from the server, or will the client be a listener, and the server will make the initial connection?

I believe that the Sockets is what you'll need to implement this either way. Look into TcpListener and TcpClient. The MSDN entries should be the top hit on google.

If it is the former, your server will need to implement the listener. If it is the latter, the client will need to be a listener, but it will first need to register itself with the server somehow, so the server can know it's IP. That's a difficult situation, because if the client is on a computer with DHCP, that IP will change, and the program will need to register itself on a regular interval.
Sep 27 '08 #2
ya the client will make a request to the server for a file.. my ip address is dynamic so i cant hard code the IP in the server .. so wondering how to go about this..
Sep 27 '08 #3
Curtis Rutland
3,256 Expert 2GB
ya the client will make a request to the server for a file.. my ip address is dynamic so i cant hard code the IP in the server .. so wondering how to go about this..
Well, that will be a real problem. A dynamic IP address makes serving anything difficult. But there is one option, the one I use: DynDNS. That could help you.
Sep 27 '08 #4
Well, that will be a real problem. A dynamic IP address makes serving anything difficult. But there is one option, the one I use: DynDNS. That could help you.

hey insertAlias thanks your idea bout dynDNS is too good... u solved half of my problem .. now i m trying to work on the firewall issues.. i think firewall will block the files to be sent from the server(remote system) to mysystem(client) .. now i have to register the program as a trusted windows program.. am i right???
Sep 29 '08 #5
Curtis Rutland
3,256 Expert 2GB
Depending on what your firewall is, you should be able to add exclusions or exceptions to it.

I'm not sure that you can do this programatically, because that would be a serious security violation.
Sep 29 '08 #6
Depending on what your firewall is, you should be able to add exclusions or exceptions to it.

I'm not sure that you can do this programatically, because that would be a serious security violation.

tats rit... wel the application i m trying to develop is to send the files to me.. well here the user will be aware of the files being sent to me.. infact the user will be prompted to select the file which ll be sent.. here nothing malicious is happening.. so the only issue is the firewall .. going through articles to get this part done..
Sep 29 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: R. Alan Monroe | last post by:
Subject says it all... what's the fastest way to get many thousands of records to the client? I'm trying to sketch out a traditional 3 tier client-server system. Multiple clients would make...
1
by: Krzysztof Pa¼ | last post by:
Hi, I want to make simple client in phyton, which would be able to communicate with Java server using SSL sockets. There is the Java clients, which is doing this - so I'm pretty sure, that Java...
3
by: R.A. | last post by:
Hi, I have a web service that process a client call. When a client makes a call to the web method the method needs to query some data from a client_A and return the data to the calling client_B....
2
by: Jeff | last post by:
I have the following packages installed on my system: libpq3: 7.3.2r1-5 python-pygresql: 7.3.2r1-5 postgresql: 7.2.1-2woody2 postgresql-client: 7.2.1-2woody2 In my application, which is...
4
by: Nikhil Tayal | last post by:
Is there a way to write a file on the client machine from an aspx page? I've a custom query page and need to store the search criteria specified in an XML file on the user machine from my web page...
4
by: Joe Lester | last post by:
I'm using PostgreSQL 7.4.1. I have 140 clients connected on average using libpq. When one client sends "NOTIFY timeclock;" to the server all 140 clients are listening for it. After receiving a...
4
by: whitemoss | last post by:
Hi, I've made some changes to my coding..but unfortunately, there were errors when compiling it..dunno how to solve it..hope anyone can help me...the errors: client.c: In function senddata:...
0
by: kencana | last post by:
hi All, I got problem in passing data (more than one) from soap client to the soap server. but if i only passing one data at a time, it works successfully.. The following is the error message i...
12
by: bullockbefriending bard | last post by:
I am a complete ignoramus and newbie when it comes to designing and coding networked clients (or servers for that matter). I have a copy of Goerzen (Foundations of Python Network Programming) and...
0
by: Maurizio | last post by:
I'd like to ask some suggestion regarding a software that I'm developping. For develop the project I've to use VB.NET and Framework 3.5 This is a Client Server application. I've some computer...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.