Results 1 to 3 of 3

Thread: MySQL C# question

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2010
    Location
    San Marcos, TX
    Posts
    177

    MySQL C# question

    For security reasons my hosting service makes me specify specific IP addresses for access to MySQL. My problem is, how do I go about building a Windows app that queries my MySQL server, but can be run on different client machines with different IP addresses due to different ISPs?

    I can't go adding IPs for everyone who downloads and wants to use my application, to the whitelist. How do I go about this?

    Thanks!!

  2. #2
    Hyperactive Member Cyb3rH4Xter's Avatar
    Join Date
    May 2009
    Location
    Sweden
    Posts
    449

    Re: MySQL C# question

    There is no way a C# app can spoof an IP what I know of. The only method I can think of is if you run a VPN on a server and then configure your app to connect through that.

    Then you only have to add one IP to the list.

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: MySQL C# question

    That's what a webservice would be for. your app would access the webservice component, which would in turn access the database. That way the client apps don't have direct access to the database (which they shouldn't)

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width