Winsock and My Own File Server
Winsock and My Own File Server
Winsock and My Own File Server
Winsock and My Own File Server
Winsock and My Own File Server
Winsock and My Own File Server Winsock and My Own File Server Winsock and My Own File Server Winsock and My Own File Server Winsock and My Own File Server Winsock and My Own File Server Winsock and My Own File Server Winsock and My Own File Server
Winsock and My Own File Server Winsock and My Own File Server
Winsock and My Own File Server
Go Back  Xtreme Visual Basic Talk > > > Winsock and My Own File Server


Reply
 
Thread Tools Display Modes
  #1  
Old 09-19-2010, 10:36 AM
zunebuggy zunebuggy is offline
Newcomer
 
Join Date: Sep 2010
Posts: 22
Question Winsock and My Own File Server


A club I belong to is over 130 members strong from all over the U.S. and growing. A couple of years back I wrote an application for the members using winmm, windsock and used my paid web-hosting account as a file server. It worked pretty well and all a user needed to do was launch the program, push a key and talk into a pc microphone (keep it under 45 seconds) and the 45 second voice snippet would ftp this up to my hosting server and would sit there. The same program also used a timer routine to check this ftp location for new files. If found, it would download them and play the wav file. As the developer and payer of the hosting service, I also wrote a program that use to track how long the wav files were in the ftp dir and removed them after 15 minutes. This was because I was worried about exceeding my host disk space limits. Anyway the program worked OK and it was easy to use but I ran into some issues and I told everyone we had to find another way.

1. Although I didn't reach my disk space limits, I was getting dangerously close to bandwidth use limits and going over means hefty penalties.
2. Any curious person with a decompiler or some expert computer skills could easily get my username and password to my host site and do whatever.

So, since my web host has a free MySQL database I thought I'd look into peer to peer to handle the wav file transfers and use a database to handle the routing. But after looking to how many members there are and how many different router/network connection scenarios there are, I figure a lot of these users would not be comfortable with a program that is asking them if it can be trusted on their firewall.... Many probably do not know what a firewall is. Nor do I know how to get around all the firewall/router issues with P2P. I have read a lot of articles and it sounds very complicated and way to involved for my skill level.

Yet I wanted to press on and find a solution. I think I have found one that will work but I have some questions.

My solution is to take one of the many PCs I have in my basement and connecting it to my ISP 24/7 and possibly install and configure Apache (or does anyone here have a better server software suggestion?) and use it to host the wav files.

Here are the questions:

1. I already asked this but, is there something better than Apache for my needs here, which is a file server with essentially no bandwidth limit (my ISP does have limits but they are so high I will never exceed them)
2. I do not have a static IP and paying my ISP for one is not feasible. My IP rarely if ever changes, but I was thinking I could handle writing an application that checked it once an hour and uploaded it to my hosting site in a text file. My communications application could check this text file and update the IP info if necessary... Will this work?
3. How do I prevent this file server from being hacked? I know anything can be hacked, so I will rephrase to say “less vulnerable and open to attacks”. I assume if I am using Apache or some other software it will have security settings for this, but I think I will still have to embed my ftp username and password in the program which again leaves it vulnerable?
4. I was thinking of setting up an anonymous ftp on this PC that is acting as a file server, where permissions are set to upload only and then write a side application that monitors the ftp location and moves the wav files to read only location on the PC that is acting as a file server. Will this work?
5. Some users use XP, Vista or Windows 7. If I write the application in VB6 (I own VB6 and do not own VB.Net and cannot really shell out the cash for it now) will it run on Vista or Windows 7, especially with winmm and winsock?
6. Is this the best way or does someone have a great example of the P2P programming (in VB6) that takes into account every network/router/firewall scenario?

Sorry this is so long, but I would really like to find a solution and get this communication program back up and running as soon as possible.

Thank you.
Z
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Winsock and My Own File Server
Winsock and My Own File Server
Winsock and My Own File Server Winsock and My Own File Server
Winsock and My Own File Server
Winsock and My Own File Server
Winsock and My Own File Server Winsock and My Own File Server Winsock and My Own File Server Winsock and My Own File Server Winsock and My Own File Server Winsock and My Own File Server Winsock and My Own File Server
Winsock and My Own File Server
Winsock and My Own File Server
 
Winsock and My Own File Server
Winsock and My Own File Server
 
-->