All Products 
Username / Customer#
Password
Log In
 Hi,  |  Log Out
  • Site Search
  • Domain Search
  • WHOIS Domain Check
24/7 Support: (480) 505-8877
Hablamos Español
9 AM to 9 PM IST
7 days a week
Go Daddy Support

Search help articles, forums, and discussion groups

TCP server getting started

Viewing post 1 to 12 (12 total posts)
Profile picture of 3EyedGeek

3EyedGeek said 2 years, 3 months ago:

We have purchased virtual dedicated server and wish to use it as a TCP server.

We have some sample PHP code but do not know which directory to upload it to or what else we need to do to get started.

Thanks in advance for any helpful information

Profile picture of ChrisG

GoDaddy Expert chrisg said 2 years, 3 months ago:

@3EyedGeek,

You will want to refer to the information provided in the following URL which will assist you in getting started with your Virtual Dedicated Server account:

http://support.godaddy.com/help/article/2231

If you are running into any specific issues with the server itself, you may want to submit a trouble ticket to our Server Support team who can further assist in this regard. To submit a trouble ticket, simply follow the instructions below:

http://support.godaddy.com/help/article/4596

Christopher G.

Profile picture of ShelLuser

ShelLuser said 2 years, 3 months ago:

No offense here but a “TCP server” doesn’t really mean much. Considering that you mention PHP code I assume you meant to say that you want to use it as a /webserver/ ?

A lot depends on your server and what extra’s you got with it. For example; if you went with the simple control panel you can easily get around this by adding a new domain (using system configuration -> domains) and then configuring your FTP server through usage of the “FTP” option.

That way you can easily setup a domain for your website (so configuring your webserver) and then uploading stuff to it.

Hope this gave you some more ideas!

Profile picture of 3EyedGeek

3EyedGeek said 2 years, 3 months ago:

What we want is to have our dedicated virtual server function as a TCP listener always ready to accept clients.

the getting started info does not include any information about TCP sockets.

thanks in advance for any help

Profile picture of ShelLuser

ShelLuser said 2 years, 3 months ago:

Clients for what ?

Website visitors? Because then, as stated above, you really merely need to setup a webserver.

Profile picture of 3EyedGeek

3EyedGeek said 2 years, 3 months ago:

Thank you ShelLuser for your interest and help

We have micro controller driven devices. We also have user interface software that runs on a PC.

Currently we are able to communicate with the devices via USB, via a Zigbee network and via TCP socket limited to a local network.

we want the virtual dedicated server to go between the device and the user interface software (running on a PC). Both the device and the user interface software will establish a TCP socket with our Virtual dedicated server. The virtual dedicated server will then bridge communication between both sockets.

The reason we need the virtual dedicated server as bridge is that both the device and the PC running the user interface software may be connected to the internet with a dynamic IP and/or a local network IP

Profile picture of ChrisG

GoDaddy Expert chrisg said 2 years, 3 months ago:

@3EyedGeek,

Based on what you have described, you are attempting something that we can’t provide much assistance with on how to setup. I would recommend a review of general search engine results for an online tutorial in regards to what you are attempting to do. Beyond this, I wish you the best of luck in your endeavor.

Christopher G.

Profile picture of ShelLuser

ShelLuser said 2 years, 3 months ago:

I also can’t fully comment on this since its very specific and being unfamiliar with the software…

What I can say about it is that a virtual dedicated server should allow for this kind of usage depending on the ports you’re going to use. Some ports (6667 for example) are being blocked in order to prevent abuse. Obviously if you were to use the same port this would fail.

But apart from that… To my knowledge there’s nothing stopping you from initiating a specific connection to your server like this. In basic its not much different from me accessing my MySQL server from my home computer.

So; it should be doable. The how and why and such; that is indeed a bit beyond the community I think and also very specifically tied to your setup.

Profile picture of 3EyedGeek

3EyedGeek said 2 years, 3 months ago:

Thank you all for your responses.

I will post additional information to this thread latter in case some one finds it in a search.

What I’ve discovered so far is that one way to get started developing the script is to put it into a web page. The script is started by typing the web page into a browser. The script can contain a loop that runs indefinitely. On the browser you will see a page loading message indefinitely while the script is running. Be aware that output to the browser may not be displayed until the script is finished running.

Profile picture of ChrisG

GoDaddy Expert chrisg said 2 years, 3 months ago:

@3EyedGeek,

Thank you for this update. I do wish you the best of luck in this endeavor. I will also be looking forward to your updates in this effort as I’m sure the information will be beneficial to other members who might attempt the same with their own server accounts.

Christopher G.

Profile picture of 3EyedGeek

3EyedGeek said 2 years, 3 months ago:

In this post I will describe script lifetime considerations.

but first for those who are interested we have successfully achieved communication between the software on a PC and the device routed through the virtual dedicated server. If anyone could refer me to sample scripts for handling multiple users and/or authenticating TCP clients this could save me some work for the next big steps.

Script lifetime is controlled by the max_execution_time property in the file /etc/php.ini. This path and file is in relation to the root of the server (NOT the root of any domain section of the server). The default value is 30 seconds. be aware that something is out of calibration because with the default setting of 30 seconds scripts actually run for 130 seconds. I did not precisely test for other value but noticed that the actual time out was always longer then the setting.

The downside of making long running scripts is that if a bug results in an infinite loop there is no easy way to kill the script. clicking stop on the browser does not stop the script from running. deleting the file with the script does not stop it. The only way I found so far that works is to restart the server.

Another consideration is how to assure that only one instance of the script is running at a time. My idea is so far untested. What I’m thinking is that while the script is running that once a minute it will store the current time (in a data base entry and/or file). during script start up the script will check the stored value. if the value was updated with in the past 5 minutes the script will exit assuming another copy is running. I’m also thinking about setting up a cron job to make sure that if the script stops for some reason that another instance will start up shortly after.

Profile picture of ShelLuser

ShelLuser said 2 years, 3 months ago:

@3EyedGeek Well, first of all its good to hear that it worked out, I actually didn’t expect much different considering that GD blocks very little ports on their VDS systems.

Unfortunately I can’t really comment on scripts and such. I have been doing something similar myself but all of my developments have been solely Java based.

I wonder if codesnippets could provide some help here:

http://snipplr.com/

Its a website which is fully aimed at sharing code snippets (or whole programs). Perhaps it could be a lead ?

Hope this can help somewhat..

Add a reply:

You will auto join this group when you reply to this topic.

When posting about a technical issue, please be sure to include as many details as possible, such as your domain name, related URLs and other pertinent information. This consideration will allow us to better understand the situation and quickly assist you.