473,320 Members | 1,961 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.

Client / Server how to?

Hello.

I've build a simple Form app. I want to find out what options do I have to make it communicate with a server.
My app does(wants to do) the following things:
1 - Log in to the server using an username and password.
2 - Send every 15 minutes the uptime of the computer and other information, like memory usage, cpu usage etc.

I'm a starter in windows programming but I've managed to build up my application to the point I have to ask for help for the comms.
First thing that got in my mind, connect to a mysql server and exchange data with it. Very unsecure. Someone can decompile my program and see what is the username and password for mysql.
Second, I thought of using PHP+mySQL on the server and just send via urls http://www.example.com/login.php?username=user&password=pass. Which sounds good but I make my life to complicated.
Third, I looked for Apache Tomcat Server. Adrian != Java so it's out of the question.
Forth, sockets. I think this is the best choice. Still, I have no idea how to do that. Can you please guide me in the right direction? I would appreciate it very much. If sockets is the best options, please give me a head start.
I found this but it's too complicated for me.

Respect!
Adrian
Apr 6 '10 #1
2 1284
tlhintoq
3,525 Expert 2GB
I found this but it's too complicated for me.
A simple chat/IMprogram is exactly where I would have sent you - and I might guess most experts here would have sent you. It shows everything you need to make two computers on a network talk to each other.
Apr 6 '10 #2
Frinavale
9,735 Expert Mod 8TB
Wow you should never ever ever ever ever pass the user name and password as parameters using the Query String!

I strongly advise against this (most users use the same password for multiple sites and applications...and you would be exposing their password!)

I think your best bet would be to use sockets because then you could push the data to the clients as soon as it arrives at the server.

Failing that, maybe use a Web Service.

-Frinny
Apr 15 '10 #3

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

Similar topics

5
by: Matt | last post by:
I think this is the basic concept in ASP server-side development. My boss told me web application is NOT client-server application. I argued with him because browser is the client, and the server...
2
by: Microsoft | last post by:
I'm about to start converting my application from a old-style monolith exe (with flat files and limited database support for sharing some of the data) to a layered .NET SQL server version. I have...
15
by: Michael Rybak | last post by:
hi, everyone. I'm writing a 2-players game that should support network mode. I'm now testing it on 1 PC since I don't have 2. I directly use sockets, and both client and server do...
18
by: cjl | last post by:
Hey all: I know that it is silly in the age of Google to 'lose' something on the internet, but I recently checked out a project that had implemented a database with a subset of SQL in pure...
6
by: Ken Allen | last post by:
I am relatively new to .Net and C#, but I hav ebeen programing in other languages and done some COM work for a number of years. I am attempting to understand how to map an older program...
0
by: Harley | last post by:
Hello, I am just learning the tcp/ip functions etc under vb.net so please look over me if this is obviouse. I have been all over looking into any functions that I didn't totaly understand and...
4
by: rs | last post by:
how I the client tell the server that the socket is closed? or this there an even that informs the server that the clients socket is close? Oh, I am using vb.net 2003 Thanks
10
by: Ben | last post by:
Hi, I made an application in classic asp (reservation of books and video stuffs for students) and want to migrate to asp.net. The user has to chose a date, then pushung on a submit button. The...
2
by: Frank Swarbrick | last post by:
I am trying to understand "client authentication" works. My environment is DB2/UDB LUW 8.2 on zSeries SLES9 as the database server and DB2 for VSE 7.4 as the client. We currently have DB2/LUW set...
2
by: nsaffary | last post by:
hi I hava a client/server program that run correctly when i run it in one computer(local) but when I run client on a one computer and run server run on another, connection does not stablish.(I set...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
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)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
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....

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.