Updated specific locations to be searchable, take a look at Las Vegas as an example.

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

5
Possible to return the IP from a ping?
Post Body

Hello,

I've been trying to deal with an issue where a certain site has a pool of IPs, and when it hits a certain one it doesn't load the data for us. We are trying to show more information with IP's that work, and the IP(s) that don't.

Is it possible to get the IP and output it from "Ping statistics for xxx.xxx.xxx.xxx?

I found a batch script and modified it a little to get date/time stamps, below is the script.

Example of what I'd want is to check google.com and the output gives me something like "Link is up - Thu 06/16/2022 7:55:23.20 google.com (ip address here)"

u/setlocal enableextensions enabledelayedexpansion
u/echo off
set ip=%1
:loop
set state=down
for /f "tokens=5,6,7" %%a in ('ping -n 1 !ip!') do (
    if "x%%b"=="xunreachable." goto :endloop
    if "x%%a"=="xReceived" if "x%%c"=="x1,"  set state=up
)
:endloop
echo.Link is !state! - ๏ฟฝte% %time% !ip!
ping -n 60 127.0.0.1 >nul: 2>nul:
goto :loop
endlocal

Author
User Disabled
Account Strength
0%
Disabled 4 months ago
Account Age
11 years
Verified Email
Yes
Verified Flair
No
Total Karma
343
Link Karma
124
Comment Karma
120
Profile updated: 14 hours ago
Posts updated: 6 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
2 years ago