Sign in to follow this  
Followers 0
GodForsakenSoul

hosts offline? is ping retarded? wtf's wrong?

6 posts in this topic

#1 ·  Posted (edited)

i'm trying to find out why my code isn't connecting.

i'm working on a tcp server client thing. i know it's not very new, but i still want to make one.

the issue at hand: ALL FRIGGIN HOSTS ARE OFFLINE!

i discovered this after a few days of unsuccessful connection attempts.

$ping1=InputBox("IP","IP")
$ping=ping ($ping1)
if @error=0 Then
    MsgBox(1,"good","good")
EndIf
If @error=1 then
    MsgBox(1, "bad","host offline")
EndIf
If @error=2 Then
    MsgBox(1, "bad","host unreachable")
EndIf
If @error=3 then
    MsgBox(1, "bad","bad destination")
EndIf
If @error=4 Then
    MsgBox(1, "other","other")
EndIf

this abomination tells me "host offline", and not anything else. i verified this by pinging them via cmd.exe aswell. i have no idea why i expected a different result from cmd.exe, honestly, but i thought it was worth a shot.

now upon discovering the problem i'm now seeking solutions. i tried google. i honestly did. i reached http://ping.eu/ which i'm using to ping my friends, which gets a similar result. the question must be then asked. what THE HELL am doing wrong?

Edited by GodForsakenSoul

Share this post


Link to post
Share on other sites



i get a "request timed out" problem.

my script tells me "the host is offline".

also... what's a mvp? first time i see one o.O

Share this post


Link to post
Share on other sites

Using 87.106.244.38 as the IP this is working properly. Perhaps you are getting the IP wrong?

;
$ping1=InputBox("IP","IP")
$ping=ping ($ping1)
if @error=0 Then
   MsgBox(1,"good","good" & @CRLF & @CRLF & $Ping & " ms")
Else
   Switch @Error
      Case 1
         $sMsg = "host offline"
      Case 2
         $sMsg = "host unreachable"
      Case 3
         $sMsg = "bad destination"
      Case 4
         $sMsg = "an unknown error occured"
   EndSwitch
   MsgBox(0, "bad", $sMsg)
EndIf
;

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

Using 87.106.244.38 as the IP this is working properly. Perhaps you are getting the IP wrong?

;
$ping1=InputBox("IP","IP")
$ping=ping ($ping1)
if @error=0 Then
   MsgBox(1,"good","good" & @CRLF & @CRLF & $Ping & " ms")
Else
   Switch @Error
      Case 1
         $sMsg = "host offline"
      Case 2
         $sMsg = "host unreachable"
      Case 3
         $sMsg = "bad destination"
      Case 4
         $sMsg = "an unknown error occured"
   EndSwitch
   MsgBox(0, "bad", $sMsg)
EndIf
;

after some conversation we found out that she has a router.

apparently, she now needs to go trough the hell of setting up a static ip. which leads to the question: how do everyone else managed to build those tcp client/servers WITHOUT putting the user through living hell for the chance of using it?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0