views:

78

answers:

3

Hi,

I want to set up a system with a Client-Server architecture.

Problem: Sending daily log data from the client application to server. Both the client and server are on an internal network with different IP addresses.

Possible Methods...

1) Using Socket Programming

2) Sending over Active Directory (if possible)

3) Sending file from one IP address to another.

Please suggest some methods (apart from http) and how to implement the same?

NOTE: Information on client side is stored in SQLite database.

Thanks in advance.

+2  A: 

How about something as simple as a shared network drive, and a regular file copy? If the servers are on the same network?

Yes, it's not sexy, but it does the job pretty easily.

Jakob Jenkov
+1  A: 

DNS is not required to use HTTP or any other network protocol. You can use the computers IP Address in place of the domain name entry. As Jakob Jenkov said you could just use standard File.Copy to copy the files from the client to a central server. If you want to use some sort of custom network connection for such a transfer you should look at WCF. WCF supports many different network protocols and is very reusable.

More difficult options would using Sockets, TcpListner/TcpClient, and Remoting.

It should probably be noted that Active Directory is a directory listing service, not a network transfer protocol.

Matthew Whited
+1  A: 

Since you consider "sending a file from one ip address to another" an option, why not setup a network share (\serverShare\mylogshare) and write a simple program that runs on the client that will copy the client log data file to the network share. Run the program as a scheduled task in whatever time frame you desire.

P.Brian.Mackey