Solved

CLIENT SERVER APPLICATION REMOTE SERVER ACCESS

Posted on 2012-03-13
19
289 Views
Last Modified: 2012-06-27
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.
0
Comment
Question by:emi_sastra
  • 12
  • 7
19 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 37717661
Access server within your app? What sort of access?
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 37717773
Client Server Application.

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

Thank you.
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 37717802
There are loads of options

-Remoting
-WCF
-Web Services
-TCP/IP
-HTTP
...
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 37717812
Which one is simple to adapt from LAN Application ?

Using IP connection string or something else which is simple ?

Thank you.
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 37717865
Below are the screen shot of the remote server.

Thank you.
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 37717872
Below are the screen shot of the remote server.

Thank you.
REMOTE-SQL-SERVER.PNG
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 37717905
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.
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 37717907
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.
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 37717917
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.
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 1

Author Comment

by:emi_sastra
ID: 37717930
- 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.
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 37717936
- 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.
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 37717938
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.
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 37717946
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.
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 37717952
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.
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 37717963
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.
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 37717970
We don't use VPN just have public/static IP.

Thank you.
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 37718018
Would you please provide good code or link to configuring tcp/ip tunneling through SSH ?

Thank you.
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 37719541
0
 
LVL 1

Author Closing Comment

by:emi_sastra
ID: 37723251
Great.

Thank you very much for your help.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now