Avatar of emi_sastra
emi_sastra
 asked on

CLIENT SERVER APPLICATION REMOTE SERVER ACCESS

Hi All,

I create a windows app. I want to access server from client computer.
The server is also serve as web server.

How could I do it ?

Thank you.
Visual Basic.NETMicrosoft SQL Server 2008

Avatar of undefined
Last Comment
emi_sastra

8/22/2022 - Mon
Nasir Razzaq

Access server within your app? What sort of access?
emi_sastra

ASKER
Client Server Application.

Application is run at client side and access database to remote server.

Thank you.
Nasir Razzaq

There are loads of options

-Remoting
-WCF
-Web Services
-TCP/IP
-HTTP
...
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
emi_sastra

ASKER
Which one is simple to adapt from LAN Application ?

Using IP connection string or something else which is simple ?

Thank you.
emi_sastra

ASKER
Below are the screen shot of the remote server.

Thank you.
emi_sastra

ASKER
Below are the screen shot of the remote server.

Thank you.
REMOTE-SQL-SERVER.PNG
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Nasir Razzaq

If you are only using .NET clients then WCF should work. Webservices would also do the job.

>Using IP connection string or something else which is simple ?

For you would need to open your SQL Server onto internet which is not desired and most firewalls would block the connection anyway.
emi_sastra

ASKER
What I mean simple is we don't have to change the way we fetch data from LAN SQL server, but just change the connection.

Thank you.
Nasir Razzaq

Is this server on LAN or WAN? If WAN then it wont be very simple. As I said, you would be exposing your database server on the internet and your hosting company would probably block the port anyway.
Your help has saved me hundreds of hours of internet surfing.
fblack61
emi_sastra

ASKER
- For you would need to open your SQL Server onto internet which is not desired and most firewalls would block the connection anyway.

Let me try it first. If there is other way the please tell me.

How could do it ?

Thank you.
emi_sastra

ASKER
- Is this server on LAN or WAN? If WAN then it wont be very simple. As I said, you would be exposing your database server on the internet and your hosting company would probably block the port anyway.

It is a web server.
Let's say the company allow us to do it, since it is dedicated web server.

Thank you.
emi_sastra

ASKER
Or let's say it just a company server reside at the company and connected through internet.
The user could use application which reside at client computer from the branch or warehouse somewhere else.

Thank you.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Nasir Razzaq

There are usually two options

1) Use tunneling and then the server will be same as if it was on LAN

2) Use one of the options I have previously mentioned.

-1) You can expose the SQL server on web and use it that way but that's not recommended.
emi_sastra

ASKER
Great.

How could I do it using option 1 ?

-1) You can expose the SQL server on web and use it that way but that's not recommended.
We could set the windows server security to accept incoming user  and Ip address. Could we ?

Thank you.
Nasir Razzaq

For -1, I do not know the exact details of how to achieve it but I think it will be troublesome

For 1, use VPN. Ask your network administrator.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
emi_sastra

ASKER
We don't use VPN just have public/static IP.

Thank you.
emi_sastra

ASKER
Would you please provide good code or link to configuring tcp/ip tunneling through SSH ?

Thank you.
ASKER CERTIFIED SOLUTION
Nasir Razzaq

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
emi_sastra

ASKER
Great.

Thank you very much for your help.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.