Sponsored Content
Full Discussion: Linux (RHEL) and ports...
Top Forums UNIX for Dummies Questions & Answers Linux (RHEL) and ports... Post 302828015 by mcclunyboy on Monday 1st of July 2013 12:27:15 PM
Old 07-01-2013
All I need to know if there is a way to confirm whether the port allows outgoing (not just incoming) traffic?

I can then pass the information to the supplier to fix.. I have just read that tcp ports allow connections bidirectionally as default, is this correct (it was in another forum post)?

I have tried various commands now and by all appearences the port is working exactly as our test environment (which is on the same server for this application).

Error messages all point to a problem connecting to the client (there are no firewalls between the server/client it is all on an internal network), jboss should communicating through this port. I can't provide the exact error just now as I am no longer at work but it was along the lines of Broken Pipe/Stream can't communicate.

Thanks for the reply.

Last edited by mcclunyboy; 07-01-2013 at 01:34 PM..
 

10 More Discussions You Might Find Interesting

1. Linux

How to setup ports on Linux

If Linux have a file like AIX: rc.tcpip to setup port services? (3 Replies)
Discussion started by: rainbow_bean
3 Replies

2. IP Networking

domain linux server, open ports?

Hi all - i currently run a domain strifex.net. This domain has a dedicated IP address and in having that, should be able to run a ventrilo VoIP server from it. I uploaded all the needed files etc... and am able to connect to it, if and only if i enable DMZ to my local machine - then i am able to... (1 Reply)
Discussion started by: ccfc1986
1 Replies

3. Linux

proper way to reserve ports in linux

How do you debug a perl script non interactively, similar to bash -x? (1 Reply)
Discussion started by: marcpascual
1 Replies

4. UNIX and Linux Applications

Linux ODBC in RHEL v5.2

I need some help with a project I am working on. I am writing a database application to manage some access lists. While this is for internal use only, the IT infrastructure is US Army managed. This severely limits which software I am allowed to use. I have a RHEL v5.2 server which uses some... (2 Replies)
Discussion started by: KenK
2 Replies

5. UNIX for Advanced & Expert Users

linux rhel: on which string did this come from?

Hi Guys, RHEL 4.4 I was reviewing an app failure on one of our hosts and I encountered this entry on syslog: Feb 22 08:54:46 saturn-host rc: Starting start_server_daemon: succeeded there's timestamp, saturn-host is the servername, rc is the linux rc wrapper script, "Starting" is on... (1 Reply)
Discussion started by: marcpascual
1 Replies

6. Cybersecurity

Ports open on solaris/linux

Hi, I am trying to close all possible ports on my solaris and linux servers. I am stuck on the following ports on both Solaris 10 (local zone) and Linux (Suse) servers. Here is nmap output : PORT STATE SERVICE 22/tcp open ssh 80/tcp open http 1720/tcp open H.323/Q.931... (6 Replies)
Discussion started by: manifesto
6 Replies

7. Emergency UNIX and Linux Support

RHEL/Linux Small Monitor

Hi, I'm using RHEL 4.5, and currently due to some special circumstances that required me to use this small monitor about 7" The problem is while using this monitor with windows, the monitor able to show the graphic/view.. but while using redhat it unable to detect. This monitor has no... (7 Replies)
Discussion started by: flekzout
7 Replies

8. Programming

c functions to turn off open ports in linux

nmap is a network utility which gives u information about open ports on ur system. for eg $ nmap 10.226.112.202 PORT STATE SERVICE 7/tcp open echo 13/tcp open daytime 22/tcp open ssh 23/tcp open telnet 37/tcp open time 1100/tcp open unknown these open... (2 Replies)
Discussion started by: anand121
2 Replies

9. Red Hat

Server Hang in Linux RHEL 5.5

Dear All , One of our Oracle Database Server , which got hanged a couple of days before , so that we could not login to the Server , but it was pinging. So we tried various options and at last we did a reboot of this server. To find out the root cause of the Server Hang , when i checked the... (2 Replies)
Discussion started by: jegaraman
2 Replies

10. Red Hat

RHEL Linux 6.2 to 7.3 - Bootable iso

Hi All On one of my sandbox machine, I want to replace RHEL 6.2 to RHEL 7.3. I am using both developer editions. rhel-server-7.3-x86_64-dvd.iso ... This is what I have downloaded from Red Hat Enterprise Linux Download | Red Hat Developers My understanding is this file would work as a... (1 Reply)
Discussion started by: videsh77
1 Replies
socket(n)						       Tcl Built-In Commands							 socket(n)

__________________________________________________________________________________________________________________________________________________

NAME
socket - Open a TCP network connection SYNOPSIS
socket ?options? host port socket -server command ?options? port _________________________________________________________________ DESCRIPTION
This command opens a network socket and returns a channel identifier that may be used in future invocations of commands like read, puts and flush. At present only the TCP network protocol is supported; future releases may include support for additional protocols. The socket command may be used to open either the client or server side of a connection, depending on whether the -server switch is specified. Note that the default encoding for all sockets is the system encoding, as returned by encoding system. Most of the time, you will need to use fconfigure to alter this to something else, such as utf-8 (ideal for communicating with other Tcl processes) or iso8859-1 (useful for many network protocols, especially the older ones). CLIENT SOCKETS
If the -server option is not specified, then the client side of a connection is opened and the command returns a channel identifier that can be used for both reading and writing. Port and host specify a port to connect to; there must be a server accepting connections on this port. Port is an integer port number (or service name, where supported and understood by the host operating system) and host is either a domain-style name such as www.sunlabs.com or a numerical IP address such as 127.0.0.1. Use localhost to refer to the host on which the command is invoked. The following options may also be present before host to specify additional information about the connection: -myaddr addr Addr gives the domain-style name or numerical IP address of the client-side network interface to use for the connection. This option may be useful if the client machine has multiple network interfaces. If the option is omitted then the client-side interface will be chosen by the system software. -myport port Port specifies an integer port number (or service name, where supported and understood by the host operating system) to use for the client's side of the connection. If this option is omitted, the client's port number will be chosen at random by the system soft- ware. -async The -async option will cause the client socket to be connected asynchronously. This means that the socket will be created immedi- ately but may not yet be connected to the server, when the call to socket returns. When a gets or flush is done on the socket before the connection attempt succeeds or fails, if the socket is in blocking mode, the operation will wait until the connection is com- pleted or fails. If the socket is in nonblocking mode and a gets or flush is done on the socket before the connection attempt suc- ceeds or fails, the operation returns immediately and fblocked on the socket returns 1. SERVER SOCKETS
If the -server option is specified then the new socket will be a server for the port given by port (either an integer or a service name, where supported and understood by the host operating system). Tcl will automatically accept connections to the given port. For each con- nection Tcl will create a new channel that may be used to communicate with the client. Tcl then invokes command with three additional arguments: the name of the new channel, the address, in network address notation, of the client's host, and the client's port number. The following additional option may also be specified before host: -myaddr addr Addr gives the domain-style name or numerical IP address of the server-side network interface to use for the connection. This option may be useful if the server machine has multiple network interfaces. If the option is omitted then the server socket is bound to the special address INADDR_ANY so that it can accept connections from any interface. Server channels cannot be used for input or output; their sole use is to accept new client connections. The channels created for each incoming client connection are opened for input and output. Closing the server channel shuts down the server so that no new connections will be accepted; however, existing connections will be unaffected. Server sockets depend on the Tcl event mechanism to find out when new connections are opened. If the application doesn't enter the event loop, for example by invoking the vwait command or calling the C procedure Tcl_DoOneEvent, then no connections will be accepted. If port is specified as zero, the operating system will allocate an unused port for use as a server socket. The port number actually allo- cated my be retrieved from the created server socket using the fconfigure command to retrieve the -sockname option as described below. CONFIGURATION OPTIONS
The fconfigure command can be used to query several readonly configuration options for socket channels: -error This option gets the current error status of the given socket. This is useful when you need to determine if an asynchronous connect operation succeeded. If there was an error, the error message is returned. If there was no error, an empty string is returned. -sockname This option returns a list of three elements, the address, the host name and the port number for the socket. If the host name cannot be computed, the second element is identical to the address, the first element of the list. -peername This option is not supported by server sockets. For client and accepted sockets, this option returns a list of three elements; these are the address, the host name and the port to which the peer socket is connected or bound. If the host name cannot be computed, the second element of the list is identical to the address, its first element. SEE ALSO
fconfigure(n), flush(n), open(n), read(n) KEYWORDS
bind, channel, connection, domain name, host, network address, socket, tcp Tcl 8.0 socket(n)
All times are GMT -4. The time now is 10:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy