telnet

cant connect from my desktop to rabbitmq on ec2

巧了我就是萌 提交于 2019-12-11 08:29:02
问题 I am trying to create an ubuntu vm with rabbitmq on EC2. I can telnet my rabbit but cant connect with java client. Here is my code ConnectionFactory factory = new ConnectionFactory(); factory.setHost("172.31.4.61"); factory.setPort(5672); Connection connection = factory.newConnection(); I get the following java.net.ConnectException: Connection timed out: connect Any ideas? 回答1: Make sure you add a rule to allow inbound traffic for port 5672 in the EC2 Security Group. 来源: https://stackoverflow

Getting a connection refused error when trying to use telnet and not sure why

六眼飞鱼酱① 提交于 2019-12-11 07:46:23
问题 I am trying to send an email to my little brother from a fake address as a prank, but I am having some trouble with telnet, and I can't figure out why it's not working. I'm using terminal on a Mac, but I can't imagine it's much different. Here's what I've typed in so far. *omitted*:~ *omitted*$ nslookup > set type=mx > google.com Server: 172.30.31.252 Address: 172.30.31.252#53 Non-authoritative answer: google.com mail exchanger = 30 alt2.aspmx.l.google.com. google.com mail exchanger = 40 alt3

Does an Android Device have to be rooted in order to telnet to it?

烂漫一生 提交于 2019-12-11 07:04:20
问题 I created a ServerSocket that listens to port 9000 in my app, and I want to telnet to that port. It works on my rooted test device, but I need it to work on non-rooted devices, which it doesn't seem to do. I need to know if this only works on rooted devices, or if it should work on unrooted droids as well, implying that I just made a mistake in my code. 回答1: It should work on any device, rooted or otherwise. As long as you aren't actually trying to access a privileged port (< 1024 if I recall

Schedule a .vbs file to run in Windows

非 Y 不嫁゛ 提交于 2019-12-11 06:48:05
问题 I have a VBScript script that starts a cmd prompt, telnets into a device and TFTP's the configuration to a server. It works when I am logged in and run it manually. I would like to automate it with Windows Task Scheduler. Any assistance would be appreciated, here is the VBScript script: set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run "cmd" WScript.Sleep 100 WshShell.AppActivate "C:\Windows\system32\cmd.exe" WScript.Sleep 300 WshShell.SendKeys "telnet 10.20.70.254{ENTER}"

Using telnet with pipe with backticks in perl

試著忘記壹切 提交于 2019-12-11 06:12:11
问题 I am trying to test a specific server is up and running on a certain port so I am using $result = `echo exit | telnet 127.0.0.1 9443`; print $result; Here I am using localhost for privacy issues The expected behavior is that it should print "...Could not open connection to the host, on port 9443: Connect failed", this way I know that the server is not running. but it prints an empty string Any help on this 回答1: The failure message is printed to STDERR , while backticks return only what goes

Telnet Clients and Their Treatment of EOL

梦想与她 提交于 2019-12-11 05:58:33
问题 This is a rather convoluted question, and for that I apologize. I wrote a Linux C sockets application, a basic framework for a simplistic chat server. The server is running on my laptop. The client is Telnet at the moment until I write a designated client application (that'll be more secure, hopefully). There are better applications for sending generic network data from a client end, I know, but I got interested about why a certain thing happens on one Telnet client but not another. The first

Tcl Expect with Putty

别等时光非礼了梦想. 提交于 2019-12-11 04:12:31
问题 Trying to achieve a goal of running putty's plink -telnet via Tcl Expect. When i do a regular: plink -telnet 127.1.1.2 i get an output of the process and am able to properly conduct what i have planned. But when i try the same from Tcl Expect: % package require Expect 5.43.2 % exp_internal 1 % spawn plink -telnet 127.1.1.2 -s 16196 % expect -nocase login expect: does "" (spawn_id exp4) match glob pattern "login"? no expect: timed out there is simply no response from the piped process. Tcl:

Java, Telnet, check for String in an InputStream

别来无恙 提交于 2019-12-11 03:31:24
问题 I am fairly raw. I am trying to write a Java class to interact with Telnet. I saw that Apache Commons and Jsacpe had APIs. I am using Jscape's Sinetfactory. The Telnet I am connecting to sends a prompt to enter 'User name?:' as soon as telnet.connect() occurs. I am required to verify that this prompt is actually happening so I do not just write the answer when something else may happen. I am inexperienced with this and am sure there is a simple answer, just wondering if anyone might be able

Error message when running telnet in python shell

情到浓时终转凉″ 提交于 2019-12-11 01:49:56
问题 Below is a minimal example of my code, which If you run, should recreate the problem I have. One thing I have encounter that the error does not appear if my raspberry pi (the thing I am using teller to connect to) is turned off or the internet cable is unplugged. #IMPORTS import time import telnetlib import sys import getpass #TELNET user = input("Please Enter Your Username: ") time.sleep(0.4) pass_ = input("Please Enter Your Password: ") bot = telnetlib.Telnet("192.168.1.128") bot.read_until

Running applications through Telnet

一世执手 提交于 2019-12-11 01:31:48
问题 I need to create a BAT file to run an application through telnet, but as far as I know there is no way to do this on DOS. Telnet does not allow any command to be sent to the remote machine at the very instant of the connection, and each subsequent command in the BAT file would only be executed after telnet stops. This hypothetical piece of code illustrates what I want to do: telnet 100.99.98.1 "C:\Application\app.exe -a -b -c" And that would run the app.exe on the machine 100.99.98.1 with