Sponsored Content
Top Forums Programming Error: No Route to host...urgent {socket() connection} Post 302142880 by blowtorch on Tuesday 30th of October 2007 03:10:35 AM
Old 10-30-2007
I missed that ping bit, but the error that the OP is getting isn't what should be returned if there is firewall blocking. Like porter said, telnet should quit with "connection refused" kind of error.

And I have another question, what ping command are you running? I have seen the Solaris ping command return "is alive" when run like this:

ping server-x
server-x is alive

But the command has failed when run like this:

ping -s server-x
:
no output - while it actually should throw:

64 bytes from server-x (x.x.x.x): icmp_seq=0. time=0.285 ms
64 bytes from server-x (x.x.x.x): icmp_seq=1. time=0.243 ms
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

add route gives target: Host name lookup failure

We need to add our remote office to our linux routing table. Our internal office ip addresses are all in the range of 198.9.200.x with an subnet mask of 255.255.255.0 the remote office has ip addresses in the range of 192.168.0.0 and also a subnet mask of 255.255.255.0 when i use the... (3 Replies)
Discussion started by: progressdll
3 Replies

2. UNIX for Dummies Questions & Answers

no route to host

I not able to ping outside the internet. i am able to ping my 192. ip address. when i try to ping a 68. ip address i get no route to host. what should i do to correct this issue. I have sco openserver 5.05 (6 Replies)
Discussion started by: scoman2
6 Replies

3. Red Hat

No route to host

I get below error when using telnet and ssh ?? Why ? the ip address of linux server is 10.155.25.22 =tstgcota ?? # netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.75.0 0.0.0.0 255.255.255.0 U 0 0... (6 Replies)
Discussion started by: chuikingman
6 Replies

4. Programming

socket() No Route to host ??

Hello, My program should connect to a server. here's the code : int main(int argc, char *argv){ int sock = socket(AF_INET, SOCK_STREAM, 0); if(sock == -1){ perror("socket()"); exit(errno); } printf("retour socket = %d",sock); struct sockaddr... (1 Reply)
Discussion started by: nowayy
1 Replies

5. AIX

problem with host route

Hi, I have a system with network interfaces en0 and en1 en0: physical ip: 1.1.1.10 virtual ip1: 192.168.100.11 virtual ip2: 192.168.100.12 en1: physical ip: 1.1.1.20 virtual ip1: 192.168.100.20 virtual ip2: 192.168.100.21 default gateway ist 192.168.100.254 when I open a... (12 Replies)
Discussion started by: funksen
12 Replies

6. IP Networking

IP forwarding Route/Host ?

I have a unix machine that operates some CNC machines, I need to hook up my windows machine through core ftp to load programs onto the box. The card i need to route to for the FTP on unix is tu1 I need to check the routing tables on the unix box to see which IP address will automatically... (2 Replies)
Discussion started by: moticulus
2 Replies

7. UNIX for Dummies Questions & Answers

No route to host - mail error

A linux box is supposed to emailing the results of backups to the windows exchange server, but nothing arrives. it never has, as the muppet who set up the Windows domain knew nothing about linux. I know only slightly more than that... pretty sure sendmail is the daemon running to handle mail. it... (0 Replies)
Discussion started by: Noewon
0 Replies

8. UNIX for Advanced & Expert Users

"Network error: No route to host" While connecting guest RHEL4 using putty

Hi, I have installed RHEL4 using vmware workstation.. Host OS: Windows XP Guest OS: RHEL4 Pls refer step 17 & 18 in below link... ORACLE-BASE - Red Hat Enterprise Linux 4 and Centos 4 Installation 1) If i choose to assign IP automatically (using DHCP) means, i am able to connect RHEL4... (3 Replies)
Discussion started by: thomasraj87
3 Replies

9. Red Hat

Connection closed by host error in rhel 6 Linux

Hi All, I am new to Redhat Enterprise Linux 6 version. I am facing an issue with my lab server which is having RHEL6 lab1:root> uname -a Linux lab1 2.6.32-358.18.1.el6.x86_64 #1 SMP Fri Aug 2 17:04:38 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux I am getting this error for every 18 minutes 30... (0 Replies)
Discussion started by: go2suresh1979
0 Replies

10. Shell Programming and Scripting

Telnet error- Escape character is '^]' and connection closed by foreign host

In program, I want to telnet the ports present in telnet.txt file and capture screenshot of open port which is opened on new terminal. Problems: Escape character is '^]' and Connection closed by foreign host. Loop is not working properly. It only take one ports and closed the connection. ... (9 Replies)
Discussion started by: sk151993
9 Replies
ost::UDPReceive(3)					     Library Functions Manual						ost::UDPReceive(3)

NAME
ost::UDPReceive - Representing half of a two-way UDP connection, the UDP receiver can receive data from another peer host or subnet. SYNOPSIS
#include <socket.h> Inherits ost::UDPSocket. Inherited by ost::UDPDuplex. Public Member Functions ssize_t receive (void *buf, size_t len) Receive a data packet from the connected peer host. bool isInputReady (timeout_t timeout=TIMEOUT_INF) See if input queue has data packets available. Protected Member Functions UDPReceive (const IPV4Address &bind, tpport_t port) Create a UDP receiver, bind it to a specific interface and port address so that other UDP sockets on remote machines (or the same host) may find and send UDP messages to it, and associate it with a given port on a peer host. UDPReceive (const IPV6Address &bind, tpport_t port) Error connect (const IPV4Host &host, tpport_t port) Associate this socket with a specified peer host. Error connect (const IPV6Host &host, tpport_t port) bool isPendingReceive (timeout_t timeout) Check for pending data. void endReceiver (void) End receiver. SOCKET getReceiver (void) const Error setRouting (bool enable) Error setMulticast (bool enable) Error join (const IPV4Multicast &ia) Error join (const IPV6Multicast &ia) Error drop (const IPV4Multicast &ia) Error drop (const IPV6Multicast &ia) Additional Inherited Members Detailed Description Representing half of a two-way UDP connection, the UDP receiver can receive data from another peer host or subnet. This class is used exclusivily to derive the UDPDuplex. Author: David Sugar dyfet@ostel.com Unreliable Datagram Peer Associations. Constructor &; Destructor Documentation ost::UDPReceive::UDPReceive (const IPV4Address &bind, tpport_tport) [protected] Create a UDP receiver, bind it to a specific interface and port address so that other UDP sockets on remote machines (or the same host) may find and send UDP messages to it, and associate it with a given port on a peer host. On failure to bind, an exception is thrown. Parameters: bind address to bind this socket to. port number to bind this socket to. ost::UDPReceive::UDPReceive (const IPV6Address &bind, tpport_tport) [protected] Member Function Documentation Error ost::UDPReceive::connect (const IPV4Host &host, tpport_tport) [protected] Associate this socket with a specified peer host. The port number from the constructor will be used. All UDP packets will be sent received from the specified host. Returns: 0 on success, -1 on error. Parameters: host host network address to connect socket to. port host transport port to connect socket to. Reimplemented from ost::UDPSocket. Reimplemented in ost::UDPDuplex. Error ost::UDPReceive::connect (const IPV6Host &host, tpport_tport) [protected] Reimplemented from ost::UDPSocket. Reimplemented in ost::UDPDuplex. Error ost::UDPReceive::drop (const IPV4Multicast &ia) [inline], [protected] Reimplemented from ost::Socket. References ost::Socket::drop(). Error ost::UDPReceive::drop (const IPV6Multicast &ia) [inline], [protected] Reimplemented from ost::Socket. References ost::Socket::drop(). void ost::UDPReceive::endReceiver (void) [inline], [protected] End receiver. References ost::Socket::endSocket(). SOCKET ost::UDPReceive::getReceiver (void) const [inline], [protected] bool ost::UDPReceive::isInputReady (timeout_ttimeout = TIMEOUT_INF) [inline] See if input queue has data packets available. Returns: true if data packets available. Parameters: timeout in milliseconds. References ost::Socket::isPending(), and ost::Socket::pendingInput. bool ost::UDPReceive::isPendingReceive (timeout_ttimeout) [inline], [protected] Check for pending data. Returns: true if data is waiting. Parameters: timeout in milliseconds. References ost::Socket::isPending(), and ost::Socket::pendingInput. Error ost::UDPReceive::join (const IPV4Multicast &ia) [inline], [protected] Reimplemented from ost::Socket. References ost::Socket::join(). Error ost::UDPReceive::join (const IPV6Multicast &ia) [inline], [protected] Reimplemented from ost::Socket. References ost::Socket::join(). ssize_t ost::UDPReceive::receive (void *buf, size_tlen) [inline] Receive a data packet from the connected peer host. Returns: num of bytes actually received. Parameters: buf address of data receive buffer. len size of data receive buffer. References _IOLEN64. Error ost::UDPReceive::setMulticast (boolenable) [inline], [protected] Reimplemented from ost::UDPSocket. References ost::Socket::setMulticastByFamily(). Error ost::UDPReceive::setRouting (boolenable) [inline], [protected] Reimplemented from ost::Socket. References ost::Socket::setRouting(). Author Generated automatically by Doxygen for GNU CommonC++ from the source code. GNU CommonC++ Sat Jun 23 2012 ost::UDPReceive(3)
All times are GMT -4. The time now is 06:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy