Solved

CLIENT SERVER APPLICATION REMOTE SERVER ACCESS

Posted on 2012-03-13
19
302 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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
 
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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

740 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