Sponsored Content
Full Discussion: check Internet connection?
Top Forums UNIX for Dummies Questions & Answers check Internet connection? Post 302300862 by salil2012 on Wednesday 25th of March 2009 08:29:27 AM
Old 03-25-2009
check Internet connection?

I am using SUSE OS and want to check internet connection...
I have tried:
ping -c3 google.com
The output i have got is:
Unknown host google.com

does it means that i do not have Internet connection??

Or please help me with any Command to find Internet connection?

Thanks for any help.
 

10 More Discussions You Might Find Interesting

1. IP Networking

Unix Internet Connection

I am trying to set up my internet connection for my unix system and cannot seem to do it. I have a optimum on line service, and use a cable modem, with a usb. The 3 com ethernet card in my Gateway Labtop is recognized but when I hook up the usb and try and connect the usb is unrecognized. I... (14 Replies)
Discussion started by: kdelph
14 Replies

2. UNIX for Advanced & Expert Users

setup internet connection

HI.. i was wondering if someone out there can help me setup my internet connection.... i have no clue how to set it up.. could you please tell me step by step how to set it up.. i have a static ip, im using a cable modem to connect. my os is solaris 8. Please email me at lil_souldier@hotmail.com... (2 Replies)
Discussion started by: souldier
2 Replies

3. UNIX for Advanced & Expert Users

setting up internet connection!!

HI unix guru.. i need your help again.. i tring to setup my sun box for internet connection, i am using @home cable service i have 8 pc running different operating systems. every other computer can go online but this sun box for some reason alway give me and error, i enter my ip address... (1 Reply)
Discussion started by: souldier
1 Replies

4. Solaris

Internet Connection via Lan

I have a sun wokstation running solaris 9 , I want to configuring my lan card to access internet . my IP address : 192.168.144.20 ISP gateway : 192.168.144.1 DNS address : 202.56.250.5 all helps will be appreciated thanks (2 Replies)
Discussion started by: una
2 Replies

5. UNIX for Dummies Questions & Answers

Connection of SUN to internet and to PC

Hi, 1)If someone could help me out that how could i connect to internet. Below is the system specification, and i have dial up connection. Sun UltraSPARC-IIi 270MHz processor 256 MB memory 8.4 GB HDD 100/10BaseT Ethernet CD-ROM drive 3.5" Floppy drive 2)Also, how to connect Sun to... (0 Replies)
Discussion started by: younics
0 Replies

6. Linux

setting up internet connection

I'm having fedora core4.I have a ADSL modem and can access through Windows.I tried setting up internet connection in linux using setup command and netconfig,but doesn't work. can anybody help me with the steps in detail.also can i use the same ip address as in windows? (7 Replies)
Discussion started by: laddu
7 Replies

7. BSD

Internet connection with PC BSD

Hi friends! :) I have got an Acer laptop. in one of the partion's I have got PC BSD installed. I am new UNIX user coz first I was using Windows, so I am still learning it. I only know few commands, and I find it very interesting. Unfrtunately, when I log into PC BSD, I can't connect to the... (3 Replies)
Discussion started by: dubbio123
3 Replies

8. Solaris

Internet connection

I got solaris 10 works, but I cannot set up my internet connection. When I ping a website and i open the web browser, it doesn't work. When the installation asked 'Am I in a network?' i answerd 'no'. I think this is my minstake. How can i get Internet, now? I have a ADSL modem (not router).... (5 Replies)
Discussion started by: mghis
5 Replies

9. IP Networking

Sharing internet connection

Hello all, Recently took a dive into Unix using Fedora 12 atm. I have cable modem with DHCP and a linksys 8 port router. With windows I was able to simple use the uplink port and plug each computer into the switch and use the internet connection. Having no luck doing the same in Unix. I have... (0 Replies)
Discussion started by: Fingerz
0 Replies

10. Shell Programming and Scripting

How to check internet connection?

Hello, I need a simple shell script that returns a value if the system is internet connected and a different value if the system is not connected. Can anyone please help? Thanks Daniele (3 Replies)
Discussion started by: dcaccount
3 Replies
SOCKET(1)                                                     General Commands Manual                                                    SOCKET(1)

NAME
socket - create a TCP or a UNIX domain socket and connect to stdin/out SYNOPSIS
socket [ -bcfqrvw ] [ -p command ] [ -B local address ] host port socket [ -bcfqrvw ] [ -p command ] /path socket [ -bcfqrvw ] [ -p command ] [ -B local address ] -s [ -l ] port socket [ -bcfqrvw ] [ -p command ] -s [ -l ] /path DESCRIPTION
Socket creates an Internet domain TCP or a UNIX domain stream socket and connects it to stdin and stdout. The host argument can be an Internet number in dot-notation (like ``130.149.28.10'') or a domain name. In this case it must be possible to resolve the name to a valid Internet address with gethostbyname(3). The port argument can be a port number or a service name which can be mapped to a port number by getservbyname(3). If an UNIX domain socket is wanted to be created instead of an Internet socket, specify the path instead of an internet (canonical domain named or dot-notated) host. The hostname is treated as a pathname if contains at least a single slash. I.e. if one wants to create or connect to a socket in the current directory, use ./filename to specify the connection point. OPTIONS
-b (background) The program forks itself into the background, detaches from its controlling tty, closes the file descriptors associated with the tty, and changes its current directory to the root directory. -B (local address) This option specifies which local address to binded to when making a connection. -c (crlf) Linefeed characters (LF) are converted to a Carriage Return Linefeed sequence (CRLF) when written to the socket. CRLF sequences read from the socket are converted to a single LF. -f (fork) When a server connection has been accepted, a separate process is forked to handle the connection in background. -l (loop) (only valid with -s) After a connection has been closed, another connection is accepted. -p (program) The specified command is executed for each connection. Its standard input, standard output, and standard error channels are con- nected to the socket. Command can be any shell command since it is passed to /bin/sh. -q (quit) The connection is closed when an end-of-file condition occurs on standard input. -r (read only) No data is read from standard input and written to the socket. -s (server) A server socket is created. A hostname argument is not required of Internet sockets, only the port number but a pathname is required for UNIX domain sockets. -v (verbose) Messages about connections etc. are issued to stderr. -w (write only) No data is read from the socket and written to the standard output. -version Socket prints its version ID and terminates. This must be the first argument to have an effect. EXAMPLES
The command socket -v coma.cs.tu-berlin.de nntp connects to the nntp port (port 119) of coma.cs.tu-berlin.de (130.149.28.10). The command socket -sl 3425 creates a server socket on port 3425 on the local host and waits for a connection. After a connection has been closed, a new connection is accepted. The command socket -wslqvp "echo Socket! " 1938 creates a server socket on port 1938 on the local host and waits for a connection. When a connection is accepted, the string "Socket!" is written to the socket. No data is read from the socket and written to the finger program. The connection is closed when an end-of-file condition at the standard output of the program occurs. Then a new connection is accepted. DIAGNOSTICS
Lots of diagnostics for failed system calls. unknown host host host's address could not be resolved. Signal signal caught, exiting Socket exits on any signal other than SIGTSTP, SIGCONT, SIGCLD, SIGQUIT. A non-zero exit code is returned if socket terminates due to an error condition or a signal. SEE ALSO
ip(7), tcp(7), unix(7), accept(2), bind(2), listen(2), connect(2), socket(2), gethostbyname(3), getservbyname(3) BUGS
socket -p terminates due to a SIGPIPE signal when there is more data from the socket available than the executed program wants to read. Please report any other bugs to the author. VERSION
This manual page describes Socket-1.1. AUTHOR
Juergen Nickelsen <nickel@cs.tu-berlin.de> Aug 6, 1992 SOCKET(1)
All times are GMT -4. The time now is 09:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy