Jump to content

telnet connection using fsockopen()


sama

Recommended Posts

Hi there,

 

I am new to php. I would like to make a website that can make telnet connection. Connecting to the terminal server and login to the selected networking device.

I read the script in this link:

http://www.geckotribe.com/php-telnet/

& I tried to load it for testing. the result was: fatal error.

I tried to telnet to my PC ( using 127.0.0.1 ) as the IP ( just for testing ) & I get a fatal error after a period of time.

what can I do to correct things?

anybody have an idea? plz

sama- Baghdad Iraq

 

Link to comment
https://forums.phpfreaks.com/topic/189209-telnet-connection-using-fsockopen/
Share on other sites

You wont be able to connect to your own PC unless you are running a telnet server. Many servers that host websites no longer run a telnet server or else restrict logins to only the local host. But most webhosts run a SSH server for shell access, whether they admit it or allow general access.

 

To test if the server you want to connect to runs a telnet server:

windows:

open a cmd window

type 'telent domain.tld ', no quotes

 

What happens?

 

 

HTH

Teamatomic

You wont be able to connect to your own PC unless you are running a telnet server. Many servers that host websites no longer run a telnet server or else restrict logins to only the local host. But most webhosts run a SSH server for shell access, whether they admit it or allow general access.

 

To test if the server you want to connect to runs a telnet server:

windows:

open a cmd window

type 'telent domain.tld ', no quotes

 

What happens?

 

 

HTH

Teamatomic

Dear teamatomic

It works!! I went to the college & connect my laptop to a router, giving the router an IP, & I  load the php script that I refer in the post. It works!!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.