Click here to Skip to main content
15,905,508 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
I am student of bachelor of computer science. I am working on a software .I am using a computer language vb.net. I am working on software that is Accounts Software there a database and some forms.
There is a database which is made in sql server 2000 and there are many tables.
My question is that I make that software for a Client and database will be attached in my computer.
Both are using DSL internet me and Client too.
I want to that when my Client open that software and then he work in the software then he save record so it saved in my computer database.
Please tell me complete way of that.
I saw software same as there is a bat format file I have to run first it then it successful then I can open software.
There is bellow my connection which is I am using in my software please tell me about it please.
VB
Public Function connection() As SqlConnection

con = New SqlConnection("server=(local);database=shaan;integrated security=true")

        Return con
    End Function

This is just use when software is running in my own computer but what will be connection when my Client will use software and he is also using DSL internet connection so how can create connection between server and Client

Client send request to server
Posted
Updated 11-Nov-10 23:52pm
v2

First you need to set-up Port Forwarding in your DSL modem and any routers you have to forward any requests from the internet on port 1433 to your computer, also open port 1433 in any firewalls, then you need to give Clint your public IP address (assigned by your ISP, which may change if your modem resets, if your ISP doesn't assign static addresses).

Connection string becomes;
Data Source=Your Public IP Address,1433;Network Library=DBMSSOCN;Initial Catalog=YouDataBase;User ID=myUsername;Password=myPassword;
 
Share this answer
 
How many times are you going to ask the same question and completely ignore the answers you're given??

Don't repost this question again. You REALLY need to learn how TCP/IP networking works before you tackle something like this.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900