telnet

Proxy for command line utilities in Win XP

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-01 18:18:46
问题 How do I get command line utilities like ping to use the default proxy in Windows XP. proxycfg -u sets the proxy to the default (IE) proxy alright, but it doesn't seem to be working. Update : I am behind a proxy and would like a way to check if a site is up or not hence trying to use ping! Also would like a way to telnet (without using Putty) to a specific site and port to check connectivity. 回答1: A proxy is usually used for web (HTTP) traffic, ping uses ICMP, which is a completely separate

Automate telnet port testing on Windows 7 using batch script

你说的曾经没有我的故事 提交于 2020-01-01 16:12:15
问题 I am using Windows 7 x64. Using a bat script, I need to check whether I am able to connect to some specific ports on a server using telnet. If successfully connected, the server displays a menu, or else a message like this : Connecting To xxxxx...Could not open connection to the host, on port xxxxx: Connect failed. For my purpose, the server has several ports to be tested and I don't want to complicate things by logging in or navigating menus. I just want a simple output indicating whether

Automate telnet port testing on Windows 7 using batch script

对着背影说爱祢 提交于 2020-01-01 16:09:27
问题 I am using Windows 7 x64. Using a bat script, I need to check whether I am able to connect to some specific ports on a server using telnet. If successfully connected, the server displays a menu, or else a message like this : Connecting To xxxxx...Could not open connection to the host, on port xxxxx: Connect failed. For my purpose, the server has several ports to be tested and I don't want to complicate things by logging in or navigating menus. I just want a simple output indicating whether

Spawning an interactive telnet session from a shell script

我的梦境 提交于 2020-01-01 04:28:24
问题 I'm trying to write a script to allow me to log in to a console servers 48 ports so that I can quickly determine what devices are connected to each serial line. Essentially I want to be able to have a script that, given a list of hosts/ports, telnets to the first device in the list and leaves me in interactive mode so that I can log in and confirm the device, then when I close the telnet session, connects to the next session in the list. The problem I'm facing is that if I start a telnet

How To Automate A Telnet Session Without SendKeys

五迷三道 提交于 2019-12-30 18:50:30
问题 I would like to telnet into my router, and I want to automate it so I do not have to login all the time, as I do it several times a day. Is there another method apart from sendkeys in VBS? This is because that physically types, so the telnet window needs to be active, with is rather annoying. I tried a batch file, but I am getting really strange results. Here it is: telnet 192.168.1.254 REM This is the router IP ping 255.255.255.255 -n 1 -w 1000 > nul REM This is to wait for the router if its

Running a Telnet session from VBA

江枫思渺然 提交于 2019-12-30 09:29:10
问题 I have a VBA library that does FTP, I'd like to do telnet as well. At the moment I'm shelling out to a Perl script that does the telnet based on a text file, but I'd like to drive the telnet connection natively from within the VBA. Does anyone have any source for this? I don't want to use an add-in, I need the code to be self-contained. 回答1: If you can use the MS WinSock control (also see using winsock in VBA) More resources: MSDN Library: Using the Winsock Control (Visual Basic) Winsock

The IP you're using to send mail is not authorized to send email directly to our servers

让人想犯罪 __ 提交于 2019-12-30 06:25:35
问题 hi i wanted to send mail via smtp protocol to one of my gmail's accounts... i tried but finally it occurred and error : telnet> open alt4.gmail-smtp-in.l.google.com 25 Trying 74.125.131.27... Connected to alt4.gmail-smtp-in.l.google.com. Escape character is '^]'. 220 mx.google.com ESMTP b4si2095585vdw.57 - gsmtp HELO stackoverflow.com 250 mx.google.com at your service MAIL FROM: <test@stackoverflow.com> 250 2.1.0 OK b4si2095585vdw.57 - gsmtp RCPT TO: <■■■■@gmail.com> // filtered ;) 250 2.1.5

Telnet automation / scripting [closed]

五迷三道 提交于 2019-12-29 14:59:51
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 8 months ago . I have already checked this question but could not find what I'm looking for. I am running Windows (the client), and the server is a legacy mainframe type server. Basically I need to write a script, python code or whatever, to send some know commands to the server via telnet, and

How to send an HTTP request using Telnet [closed]

拥有回忆 提交于 2019-12-29 10:53:33
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . How to get a web page's content using Telnet? For example, the content of https://stackoverflow.com/questions . 回答1: telnet ServerName 80 GET /index.html↵ ↵ ↵ means 'return', you need to hit return twice 回答2: You could do telnet stackoverflow.com 80 And then paste GET /questions HTTP/1.0 Host: stackoverflow.com #

java.net.ConnectException: Connection refused

我与影子孤独终老i 提交于 2019-12-29 02:02:28
问题 I am trying to connect to a mysql database on remote server and whenever I try to run the code it is giving me connection refused exception. Connection con = null; String driver = "com.mysql.jdbc.Driver"; String url1="jdbc:mysql://IPADDRESS:3306/"; String db = "hola"; String dbUser = "root"; String dbPasswd = "root"; Class.forName(driver).newInstance(); con = DriverManager.getConnection(url1+db, dbUser, dbPasswd); System.out.println("Database Connection Established"); Also, when I telnet with