Cannot ping while using Fiddler (Request Timed Out) - ping

As the title states, I cannot ping while using Fiddler. When I attempt to ping a website (For example "google.com") it will resolve the URL into an IP address, but it just gives a "Request timed out." message.
C:\Users\Owner>ping google.com
Pinging google.com [74.125.21.100] with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 74.125.21.100:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss)
I can surf the web, I can watch Netflix, I can get on Teamspeak, but I cannot ping a URL, and I cannot connect to the update server for a game that I play (I noticed the ping issue when I tried to ping the update server, but I cannot ping any server). The only pings I have successfully been able to perform are "localhost", "loopback", and "127.0.0.1"

This isn't about Fiddler; Fiddler is a HTTP proxy, and it doesn't change anything to do with ICMP packets used by the ping command.
My guess is that your firewall is blocking ICMP.
In the black QuickExec box below Fiddler's Web Sessions list, type
!ping google.com
and hit Enter. What do you see?

Related

telnet smtp.gmail.com returns no response

I can't connect to my smtp gmail from my unix environment,
when I do telnet smtp.gmail.com I get response
Trying 74.125.68.108...
telnet: connect to address 74.125.68.108: Connection timed out
Trying 2404:6800:4003:c02::6d...
How do I debug this?
Gmail requires SMTP communication with their server to be encrypted. You're opening up a connection to Gmail's server on port 465, unfortunately you won't be able to communicate with it in plaintext as Gmail require you to use STARTTLS/SSL encryption for the connection.
Try this:
telnet smtp.gmail.com 587
OR using Linux or OSx, you can try to use 465 with openssl.
openssl s_client -connect smtp.gmail.com:465
You should get lots of information on the SSL session and the response:
220 mx.google.com ...
Type in
HELO smtp.gmail.com
and you'll receive:
250 mx.google.com at your service
From there it is not quite as straightforward as just sending SMTP messages because Gmail has protections in place to ensure you only send emails appearing to be from accounts that actually belong to you. Instead of typing in "Helo", use "Ehlo". I don't know much about SMTP so I cannot explain the difference, and don't have time to research much. Perhaps someone with more knowledge can explain.
Then, type:
auth login
And you will receive the following:
334 VXNlcm5hbWU6
This is the word "Username" encoded in Base 64. Using a Base 64 encoder such as this one, encode your user name and enter it. Do the same for your password, which is requested next. You should see:
235 2.7.0 Accepted
And that's it, you're logged in.
There is one more oddity to overcome if you're using OSx/Linux terminals. Just pressing the "ENTER" key does not result in a CRLF which SMTP needs to end a message. You have to use "CTRL+V+ENTER". So, this should look like the following:
^M
.^M
250 2.0.0 OK
Not a answer,but just posting the outcomes of above suggestions.
telnet smtp.gmail.com 465
Trying 74.125.68.108...
telnet: connect to address 74.125.68.108: Connection timed out
Trying 2404:6800:4003:c02::6c...
telnet smtp.gmail.com 587
Trying 74.125.68.108...
telnet: connect to address 74.125.68.108: Connection timed out
Trying 2404:6800:4003:c02::6c...

Exception occurred while flushing email queue on Ionos virtual cloud server

I have a Symfony 4 application running on 1und1 on a package called "1&1 Unlimited Plus". The SMTP config looks like this:
MAILER_URL=smtp://smtp.1and1.com?username=****&password=******
and it works fine. I also have a development copy of this application on my local dev server with same config. This dev copy can send emails, too.
Since the databases on "1&1 Unlimited Plus" are limited to 1GB, I ordered another cloud server from Ionos. With the same config I am not able to send emails. I got this error in dev.log:
Exception occurred while flushing email queue: Connection could not be established with host smtp.1and1.com [Connection timed out #110]
Ping on smtp.1and1.com works, it reveals the same IP like if I ping on my dev server. On this cloud server I have running:
Plesk Onyx
Ubuntu 18.04.2 LTS‬
DNS turned off. I have just an A-record on the origin server to the IP of cloud server. NO MX-records set.
I checked the firewall rules. No outgoing limits found, just incoming. I added TCP 25 to incoming rules but I dont know if it is necessary.
I tried another ports but then I got this:
Exception occurred while flushing email queue: Expected response code 220 but got an empty response []
More config:
swiftmailer:
url: '%env(MAILER_URL)%'
spool: { type: 'memory' }
Any idea whats wrong?
I found the solution. Ionos closes the outgoing port 25 per default. This is nothing I can find or change in admin area, only technical support can open this port.

How ping command work

in order to code a program, i need to know how the ping command is working.
I need to know, if a command ping -c1 "something" is executed, how many ipv4 packets and ethernet frames will be created ? considering that every cache is empty
thanks..
The ping command uses ICMP packets. In order to code a ping command you need to be able to send and receive ICMP packets.
In windows, this is done using winsock raw socket support. Here is an example of a ping using raw sockets.
In Linux, you just need sockets support. Here is a stack overflow question about how to do ICMP packets in Linux.
Or you can find a library that implements this for you.
Reply from 192.168.2.10: bytes=32 time<1ms TTL=128 - **Computer is on OS kernel still in memory**
Request timed out. - **OS is shutdown/Firewall blocking ICMP**
Reply from 192.168.2.10: Destination host unreachable. - **Computer powered off. Physical network active**
Here is the ping command explained for troubleshooting

Ethernet setup for point to point connection

I'm trying to debug a point-to-point ethernet interface which is not working, and I'm beginning to suspect that things have changed in Windows since I last tried this.
I have built a board with a fixed IP address, and am hooking it up to my laptop for testing. Although the LEDs seem to blink, and my board manages to negotiate a physical connection, when I try to ping it from the PC, it fails. The same PC successfully manages to ping a second PC with a fixed IP address. Let me explain:
The TCP/IPv4 adapter settings on the PC are:
IP address; 192.168.1.5
Network mask: 255.255.255.0
Default Gateway: undefined
The board has:
IP address; 192.168.1.2
Network mask: 255.255.255.0
Default Gateway: 192.168.1.
When I try to ping the board from the PC, I get "Destination host unreachable" some of the time, "Request timed out" the rest I expect if there's a difficulty to always get "Request timed out". The "Destination host unreachable" has me confused. According to Microsoft, this message means nothing is being put out on the wire, and to try the route utility. I tried to "Route add 192.168.1.2 mask 255.255.255.0 0.0.0.0 IF 6", and several other attempts, including using NirSoft's NetRouteView to add a route, and it fails, with "The parameter is incorrect".
When I take a second PC and set it to
IP address; 192.168.1.2
Network mask: 255.255.255.0
Default Gateway: undefined
Then pinging works, which disagrees with the "Destination host unavailable" which I am seeing when the board is attached (the route is there).
Any suggestions?
With a direct, point-to-point connection you can't ping a second PC - where do you connect it to?
Check arp -a to see if the destination IP address has been resolved to a MAC address. If not, the 'board' is likely configured to another IP address or not at all (waiting for DHCP, running zeroconf, ...).
You don't need any routes with both nodes directly connected to each other (or through a switch).

Exchange SQL Server 2008 Database Mail issue

In my web application I have created a mail sender class and set the configurations of web.config file like this:
<mailSettings>
<smtp deliveryMethod="PickupDirectoryFromIis">
<network host="smtp.domain.com"
port="587"
userName="mail#domain.com"
password="password"/>
</smtp>
</mailSettings>
This is sending email. But SQL Server database mail can not send mail with the same account info.
Only one difference is PickupDirectoryFromIis .
Is there any setting on exchange server?
In the SQL Server Logs the errors are following.
Message
The mail could not be sent to the recipients because of the mail
server failure. (Sending Mail using Account 2 (2012-09-30T16:55:04).
Exception Message: Cannot send mails to mail server. (The SMTP server
requires a secure connection or the client was not authenticated. The
server response was: 5.7.1 Client was not authenticated).
Looks like this is a Authentication issue or port no issue.
Authentication Issue:
—————————-
Please make sure you have put the information as explained below:
Server name: smtp.gmail.com ( this is really important)
port no: 587 ( on many website this is given as 465 which is wrong, use 587 )
Check : This server requires a secure connection
Check Basic Authentication
username: youremailid#gmail.com ( should have gmail.com)
password: XXXXXXXXXXXXX
confirm password: confirm your password
Port No Issue:
——————–
Make sure port 587 is opened in your machine if you are following above example. If you are using any other port number (usually its port 25) to set up database mail in your office, make sure you speak with your security team and ask them to unblock port 25. Once they unblock port 25, your databasemail will work.
Network Connectivity:
—————————–
Also check network connectivity from your machine, if you can connect to internet from your machine on which you are testing your database mail. To test, do the following
Start- Run- type cmd – Hit Enter
Type ping gmail.com -t and then hit enter.
If output displays as Request timed out, it actually means there is network connectivity problem. Otherwise, your network connectivity is good.