sama Posted January 20, 2010 Share Posted January 20, 2010 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 More sharing options...
teamatomic Posted January 20, 2010 Share Posted January 20, 2010 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 Link to comment https://forums.phpfreaks.com/topic/189209-telnet-connection-using-fsockopen/#findComment-999039 Share on other sites More sharing options...
sama Posted January 21, 2010 Author Share Posted January 21, 2010 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!! Link to comment https://forums.phpfreaks.com/topic/189209-telnet-connection-using-fsockopen/#findComment-999512 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.