English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2006-10-24 23:34:30 · 4 answers · asked by mauvamoth 1 in Computers & Internet Programming & Design

To rephrase, can I connect (via a website) to a remote telnet server? PHP is preferred, but not a given method of doing this.

2006-10-25 00:09:19 · update #1

4 answers

I am not quite sure what you mean.

The client is the one that accesses a server.

So do you want to access a telnet server via the web site?
If so, do you a) want the web browser to do it (the browser does not run PHP) or b) the web server (controlled via something sent from your browser)?

a) This is difficult due to security restrictions. This will generally only work if the telnet server is on the same host as the web server serving the script to access it. Otherwise there is no problem but I know of now actual solution in PHP to do it. There are a handful of Java applets out there who do that.

b) This is always possible but you need two components (the PHP code to talk the telenet protocol and the PHP code to handle the communication with the browser to communicate this telnet-connection to the browser window).

So, please re-phrase the question to state what you need to know.

2006-10-24 23:50:48 · answer #1 · answered by Huh? Duh! 2 · 0 0

No. You can't "access a remote client". Clients access servers, not the other way around. It's possible that what you actually want is to access a remote SERVER via telnet (in other words, you want to write your own telnet client in PHP), which is entirely possible, but will require a good understanding of telnet protocol, as well as the capacity to work with telnet. In particular, port 23 (22 if you want to use SSH) must not be blocked.

There is an example of PHP script using telnet connection to retrtieve data from a Cisco switch in the user notes to the fsockopen() function:

http://www.php.net/manual/en/function.fsockopen.php#52966

__________

2006-10-26 06:43:21 · answer #2 · answered by NC 7 · 0 0

A better way might be to put a telnet Java app on your page.

2006-10-25 02:59:18 · answer #3 · answered by Daniel R 6 · 0 0

on your sisters pc she isn't operating a telnet provider. So her pc isn't listening on your connection. to attach with her pc with telnet or SSH she might want to commence the provider by technique of going to regulate panel ->admin. equipment->facilities and turning telnet on.

2016-12-05 05:14:55 · answer #4 · answered by ? 4 · 0 0

fedest.com, questions and answers