LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-25-2007, 08:44 PM   #1
tstrickland
Member
 
Registered: Jun 2005
Location: Lewisville, Texas
Posts: 36

Rep: Reputation: 15
Ping


I've been trying to get Konqueror to find http://127.0.0.1:18020/ and it can't. Someone suggested that I ping that address. I'm not familiar with pinging and I wasn't able to find any useful information on the subject, so I just tried it. The terminal output was:
tom@emachine:~$ ping 127.0.0.1:18020/
ping: unknown host 127.0.0.1:18020/
tom@emachine:~$
What is this telling me, if anything? Where can I find some information about ping?

Thank you.
 
Old 05-25-2007, 08:53 PM   #2
DirkDiggler
Member
 
Registered: May 2007
Location: Florida/USA
Distribution: Ubuntu Feisty Fawn, Fedora 7, Windows XP
Posts: 91

Rep: Reputation: 16
Hey,

I've actually never used ping in a Termianl, only in Dos. I imagine that the syntax isn't any different. It should be ping xx.xxx.xx.x Don't put a back slash after the IP address. Ping is used as dianostic tool. It sends packets of information to a node (printer, computer, website) and lets it respond. If it times out, it's not on the network or you are not on the network.

Regards,

Brandon
 
Old 05-25-2007, 09:03 PM   #3
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Unless your machine is severly borked, pinging will not show you anything special (other than your loopback is correctly working). Btw, the syntax for a ping would be
Code:
$ ping 127.0.0.1
(the lack of a port number is because ping uses ICMP, whereas your port number was most likely TCP)

The question I would like to ask you is: “What are you running that’s listening on port 18020?” You can see listening network connections (along with the owning processes) with ss or netstat like so:
Code:
$ ss -lp
$ netstat -lp
You might even try to connect to the service manually (with either netcat or a telnet client), but that would require knowing what application-level protocol it uses (perhaps http?).
 
Old 05-25-2007, 09:10 PM   #4
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Quote:
Originally Posted by DirkDiggler
It sends packets of information to a node (printer, computer, website) and lets it respond. If it times out, it's not on the network or you are not on the network.
Ping actually sends an ICMP Echo Request packet (and waits for an ICMP Echo Reply). The lack of a reply usually means there is no route to the requested host. Occasionally, it means there is a route to the host, but the host has been configured to reject or drop such packets (for example, try “ping microsoft.com”).
 
Old 05-25-2007, 09:55 PM   #5
DirkDiggler
Member
 
Registered: May 2007
Location: Florida/USA
Distribution: Ubuntu Feisty Fawn, Fedora 7, Windows XP
Posts: 91

Rep: Reputation: 16
Osor,

Thanks for the more detailed explanation. I have a question, though. It's my understanding that if ping a computer (possibly a website) enough times in a short period of time, you could freeze it up. Is this true? Would this be why a website, like microsoft.com, woud be configured to reject a ping command?

Thanks,

Brandon
 
Old 05-25-2007, 10:07 PM   #6
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
Yes, it is in fact capable of even crashing servers if the ping is big enough...I know a person who was pinging the school server and crashed it using large pings. (unintentionally of course)
 
Old 05-25-2007, 10:36 PM   #7
DirkDiggler
Member
 
Registered: May 2007
Location: Florida/USA
Distribution: Ubuntu Feisty Fawn, Fedora 7, Windows XP
Posts: 91

Rep: Reputation: 16
It's always unintentional, isn't it?
 
Old 05-25-2007, 11:24 PM   #8
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
Of course... ;-)
 
Old 05-25-2007, 11:29 PM   #9
tstrickland
Member
 
Registered: Jun 2005
Location: Lewisville, Texas
Posts: 36

Original Poster
Rep: Reputation: 15
Another Ping

I am trying to go to the web address http://127.0.0.1:18020 because this the last step in the installation of a Linuxant DriverLoader which will let me connect wirelessly to the Internet.

Following osor's recommendation, I tried to ping again. Here's the results:

tom@emachine:~$ ping 127.0.
ping: unknown host 127.0.
tom@emachine:~$ 0.1
bash: 0.1: command not found
tom@emachine:~$ ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.023 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.023 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.025 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.025 ms
64 bytes from 127.0.0.1: icmp_seq=5 ttl=64 time=0.024 ms
64 bytes from 127.0.0.1: icmp_seq=6 ttl=64 time=0.024 ms
64 bytes from 127.0.0.1: icmp_seq=7 ttl=64 time=0.024 ms
64 bytes from 127.0.0.1: icmp_seq=8 ttl=64 time=0.025 ms
64 bytes from 127.0.0.1: icmp_seq=9 ttl=64 time=0.025 ms
64 bytes from 127.0.0.1: icmp_seq=10 ttl=64 time=0.026 ms
64 bytes from 127.0.0.1: icmp_seq=11 ttl=64 time=0.025 ms

--- 127.0.0.1 ping statistics ---
11 packets transmitted, 11 received, 0% packet loss, time 10002ms
rtt min/avg/max/mdev = 0.023/0.024/0.026/0.004 ms


I guess this means that the connection is open. If so, Konqueror can't find it.

Opinions?

Thanks!
 
Old 05-26-2007, 07:20 AM   #10
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Quote:
Originally Posted by tstrickland
Following osor's recommendation, I tried to ping again.
My recommendation was not to ping again (all the ping shows is that your loopback ip is setup correctly), but to determine what programs (if any) are listening on that port. To do this, use “ss -lp” or “netstat -lp”.

You also mentioned the linuxant driver loader. According to this page, it seems you need to have the dldrconfig or webconfd program running in the background. Check to see if this is running. Additionally, see this question.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 02:39 PM
Simple question about command syntax ping/log ping results ohalnet Linux - Networking 1 07-25-2006 04:46 AM
LAN/ADSL Router ping working but DNS ping fails R N Ghosh Linux - Networking 1 01-13-2006 07:44 AM
PPP establish can ping the gateway router but unable to ping the host deepalalla Linux - Networking 0 11-18-2004 09:10 AM
windows 98 m/c ping to ip address of red hat server but fails to ping hostname ravilohot Linux - Networking 2 09-07-2004 04:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration