Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i created a new project (c# + MySQL) that support to work online or on local network.

the client have 3 PC , in two branches( the distance between the two branches is long) , he want to make one of this pc work as server and the others work as client online ..


please how to make that ?

What I have tried:

i searched on the internet , some websites says that i should to create static iP for this PC , and some websites provide Hostname like noip.com , i tried . i created hostename goldeneaglesteam.myftp.org with IP / Target (my public ip) . also i downloaded the noip.com software and checked the status it ok. but when i tried to access this hostname from my project error ( can't connect to this server ) appear .
Posted
Updated 17-Apr-19 4:07am
Comments
Richard MacCutchan 14-Apr-19 9:28am    
You need your client to allocate fixed IP addresses to all PCs in the group.
Maciej Los 14-Apr-19 12:45pm    
MySQL server has to have ip routing enabled...
johannesnestler 17-Apr-19 10:26am    
don't - use a vpn!

1) Don't put your computer or services on the internet unless you know how to secure it.

2) If you need to connect machines over the internet, do so over a VPN connection on a static IP or one of the dynamic DNS service like you mentioned (although they may take time to reconnect if your IP addresses change).

3) You should configure the firewall on your server machine to pass through the needed ports for your application (mysql is 3306).
 
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