Virtual machine > Webhosting

07/12/2014 12:18 -Sensei-#1
this might be a stupid question but yeah im not that good at this field..So basically i was trying to host my website on separate webhosting(godaddy)..
my question is how do you connect the webhost to your virtual machine? seems not working properly to me ..

any informations is much appreciated..
07/12/2014 15:29 tkblackbelt#2
You will need to open the ports you need on your virtual machine and then connect to it's ip address. I'm assuming you want to connect to your database, if you're using MySql open port 3306.

If you don't know how to open a port search it up on Google.
07/12/2014 22:28 -Sensei-#3
i did scan all the open ports on my Virtual machine and 3306 is active..
07/12/2014 23:18 tkblackbelt#4
Quote:
Originally Posted by -Sensei- View Post
i did scan all the open ports on my Virtual machine and 3306 is active..
What error message are you getting when trying to connect?

Here's also a link you may want to check out.

[Only registered and activated users can see links. Click Here To Register...]
07/13/2014 10:26 turk55#5
Just create a simple connection, the connection will fail but it will say "something" is not allowed to access where "something" is the host for the user.
07/13/2014 22:03 -Sensei-#6
Quote:
Originally Posted by turk55 View Post
Just create a simple connection, the connection will fail but it will say "something" is not allowed to access where "something" is the host for the user.
Yep i think my virtual machine is not allowing my webhost to connect... it say error 10060 .. tkblackbelt tried yesterday in many ways non works.. thanks for the try though.. i guess i have to ask my vps company about this..
07/15/2014 16:45 kakamankoko#7
have you created a new user on mysql and put the ip of your host on it ?
07/15/2014 17:40 tkblackbelt#8
We granted access to his web servers IP address. To me it looked like goddady was blocking the outgoing connection to his vps. Couldn't find any setting in the cpanel for allowing outgoing hosts. I've never used godaddy so someone with experience using it might know what to do.
07/16/2014 02:00 turk55#9
Quote:
Originally Posted by tkblackbelt View Post
We granted access to his web servers IP address. To me it looked like goddady was blocking the outgoing connection to his vps. Couldn't find any setting in the cpanel for allowing outgoing hosts. I've never used godaddy so someone with experience using it might know what to do.
For some webservers you will have to use a hostname, that is why I suggestes to just try to connect in order to get the correct IP/hostname.
07/21/2014 12:59 NonStopCoding#10
ok since this topic has already been posted save me from creating a new one i have a few questions regarding this topic if anyone does not mind answering them.

does the vps need to be windows or Linux or does it not matter?
07/21/2014 15:12 Aceking#11
Depends how your developing.
C# is built to run on windows architecture. With that being said, there are ways to run it on Linux (Mono) but not worth it IMO. If your going to run it on Linux your better off developing it to be ran off Linux.

Linux (generally) offers better performance. But in all honesty you shouldn't need to rely on that performance when running a conquer private server.

My 2 cents, some may disagree.
07/21/2014 22:20 NonStopCoding#12
Quote:
Originally Posted by Aceking View Post
Depends how your developing.
C# is built to run on windows architecture. With that being said, there are ways to run it on Linux (Mono) but not worth it IMO. If your going to run it on Linux your better off developing it to be ran off Linux.

Linux (generally) offers better performance. But in all honesty you shouldn't need to rely on that performance when running a conquer private server.

My 2 cents, some may disagree.
Hey thanks for the reply i have another question if you don't mind answering another ?

Once you set your server up to a vps or dedicated do you still have to use the debugger to keep the server up and running or is there another way to do it without keeping the console open
07/22/2014 00:12 Aceking#13
Debugger as in using Visual Studio?

When you compile your executable using Visual Studio (or whatever IDE you use) it gives you an executable that you can take and run wherever you want to.
You just need to make sure you take any libraries that it requires with it. DLL files like CO2_CORE etc are generally required.

Will need the .NET framework too, etc etc.
07/22/2014 00:30 NonStopCoding#14
yeah i am using visual studio 2013

lets take redux for example

when you load your c: there is a Redux Folder and 2 other files Redux.sln and Redux.suo
when i click the redux.sln it loads it into visual studio and hit debug which runs the exe and lets users login

to compile it i need to hit f5 is that right? sorry new to c#
07/22/2014 01:17 tkblackbelt#15
Navigate to your projects root folder (where the Redux.sln is). Then go to bin/debug, there should be a exe in that folder. You will run that to start the server.

If you are compiling in release mode (I think that's what VS calls it) it will be in the bin/release folder.