Sponsored Content
Top Forums Programming client/server compile question Post 302225912 by redoubtable on Sunday 17th of August 2008 05:58:40 PM
Old 08-17-2008
If it's working on one port and not on the other it means you're probably being blocked by a firewall or something. Is there any error when trying to create / connect the client / server in 7777 ? (if not, it's definitely a firewall).

Oh, if you try to bind a server in a low port ( < 1024 ) such as 80 you will need UID 0 (generally root).
 

10 More Discussions You Might Find Interesting

1. Programming

Client/Server Socket Application - Preventing Client from quitting on server crash

Problem - Linux Client/Server Socket Application: Preventing Client from quitting on server crash Hi, I am writing a Linux socket Server and Client using TCP protocol on Ubuntu 9.04 x64. I am having problem trying to implement a scenario where the client should keep running even when the... (2 Replies)
Discussion started by: varun.nagpaal
2 Replies

2. Solaris

DBI with MySQL client library compile on Solaris

how dow you complie perl module DBI with mysql from /usr/local/mysql/bin keeps going to mysql client for /usr/sfw/bin is it the LD_PATH ???...:confused: error is # perl login.cgi DBI connect('customers;mysql_socket=/tmp/mysql.sock:localhost','root',...) failed: Client does not... (1 Reply)
Discussion started by: photon
1 Replies

3. Programming

Top v3.7 and v3.8beta1 will not compile on Power7/AIX6.1 server.

Please help! We are upgrading our server to a new Power7/AIX6.1 from Power5/AIX5.3. I have some programs that rely on output of the TOP command to do various things, however, I keep getting an error when I try to re-compile TOP on my new server (see below). I have tried TOP 3.7 (current... (1 Reply)
Discussion started by: troym72
1 Replies

4. Solaris

Compile php with curl on solaris 10 question

I have curl compiled into /usr/local. I needed to install another version into /usr/local/curl-7.19.5 and compile php using that directory. I believe I had done that but an ldd run against php shows it is using /usr/local/lib. I have my configure script below showing how it was built and php -i... (1 Reply)
Discussion started by: csgonan
1 Replies

5. Windows & DOS: Issues & Discussions

Office server => laptop =>client server ...a lengthy and laborious ftp procedure

Hi All, I need your expertise in finding a way to solve my problem.Please excuse if this is not the right forum to ask this question and guide me to the correct forum,if possible. I am a DBA and on a daily basis i have to ftp huge dump files from my company server to my laptop and then... (3 Replies)
Discussion started by: kunwar
3 Replies

6. Solaris

Compile SSCEP (Simple SCEP client for Unix) on Solaris 10 box

Hi folks I am trying to compile SSCEP (Simple SCEP client for Unix) on Solaris 10 box. SSCEP - Simple SCEP client for Unix The errror is "ld: fatal: Symbol referencing errors. No output written to" $ make gcc -Wall -O -lcrypto -o sscep sscep.o init.o net.o sceputils.o pkcs7.o ias.o... (2 Replies)
Discussion started by: slashdotweenie
2 Replies

7. UNIX for Dummies Questions & Answers

Compiling gcc to compile make to compile yaboot

I have just installed OpenBSD on a 333MHz PPC iMac G3. It has a 6GB HDD that has been partitioned as 1GB MacOS 8.5.1, 3GB MacOS X 10.3.9, 2GB OpenBSD 4.8. I now need to install a bootloader so that my computer can recognize the OpenBSD partition at startup. I have been trying to install... (0 Replies)
Discussion started by: t04st3r
0 Replies

8. Programming

question about server client code in C

If I have two files server.c and client.c, how do you demonstate the client reading something from the server? so say i have a server,c and a client.c file in a unix machine (same folder), and i want the client to connect and write something to server (through the internet), then server returns it... (2 Replies)
Discussion started by: omega666
2 Replies

9. Shell Programming and Scripting

Sftp script for dev server to client server

hi, i am new to unix, cuold u send some sftp acripts to send files to dev server to clint server, (1 Reply)
Discussion started by: Koti.annam
1 Replies

10. UNIX for Advanced & Expert Users

Pango 1.20 does not compile when passing Cairo or X server packages as backends

Hello. Trying to compile Pango with one or mentioned packages as backend, Cairo or X11 related packages I have been facing a series of error messages that I do not know how to fix. First with Cairo. I try to compile Pango with ./configure ... (1 Reply)
Discussion started by: colt
1 Replies
gatling(1)						      General Commands Manual							gatling(1)

NAME
gatling - high performance file server SYNOPSIS
gatling [-hnvVtdDfFUlaEe] [-i bind-to-ip] [-p bind-to-port] [-T seconds] [-u uid] [-c dir] [-w workgroup] [-P bytes] [-O [f/]ip/port/regex] [-r redir-url] [-X timeout,sshd] DESCRIPTION
gatling is a HTTP and FTP server. It will export the current working directory to the world. Use -i 127.0.0.1 to only bind to a certain IP address. Use -p 81 to bind HTTP to a different TCP port than 80. Use -f -p 2100 to bind FTP to a different TCP port than 21. When running as non- root, the default ports are 8000 and 2121, respectively. Use -u nobody to run under a different UID than root. This is done after binding the server ports, so it is safe to use -u and still bind to port 80 -- in fact, it is recommended not to run gatling as superuser. Use -c /home/www to chdir and chroot to another directory than the current working directory. It is recommended to run gatling in a chroot environment to lessen the impact of possible future security problems. Use -P 2M to activate prefetching mode. Gatling will then make sure this much data is prefetched. This can reduce disk activity and improve throughput dramatically if your OS I/O scheduler is not state of the art and you are serving several large files from the same hard disk to different downloaders. Without prefetching, the disk will otherwise waste time moving the disk head between the two large files. Use -f to enable anonymous FTP (default) or -F to disable it. Use -U to disable uploads altogether (normally gatling will allow file uploads). Gatling only allows uploads to world writable directories to prevent accidental upload permission, and the files will not be world readable (use -a if you want them world readable). Gatling will only allow downloads of world readable files, that's why this switch is important. These options are only available if gatling is compiled with SUPPORT_FTP defined. Use -e to enable encryption support (https) or -E to disable it. These options are only available if gatling is compiled with SUP- PORT_HTTPS defined. Use -l to make gatling always ask for FTP passwords. Normally gatling does not, which confuses some stupid clients. This option makes gatling ask for (and ignore) a password. Use -d to enable directory index generation for HTTP (listing directories is always possible in FTP), -D to disable. It is harder to acci- dentally publish a document if the attacker can not find out the file name through directory listings. Use -t to enable transparent proxy mode. Normally, gatling will replace the port in Host: HTTP headers and FTP virtual host names with the actual port the connection arrived at. This is important for security (in case you have a secret intranet web site on port 81, which is blocked at the firewall). However, when using a firewall to redirect connections to gatling, it may make more sense to keep the ports from the HTTP Host: headers for virtual hosting. Use -v to enable virtual hosting mode, -V to disable it. Normally, when a HTTP connection asks for /foo.html and carries a "Host: www.fefe.de:80" header, gatling will chdir to "www.fefe.de:80". If "www.fefe.de:80" does not exist, gatling will chdir to "default". If this also does not exist, and neither -v or -V are given, gatling will serve "foo.html" from the current working directory. Specifying -v will make sure that no file is ever served from the current working directory, only from the virtual host directories or from default. Specifying -V means that gatling will not try to chdir at all and always serve from the current working directory. Use -T 600 to set the timeout for HTTP and FTP data connections to 10 minutes (600 seconds, default is 23 seconds). Use -f -T 600 to set the timeout for FTP control connections (default is 600 seconds). If you use -r http://master.example.com/ on mirror.example.com, and someone asks for a file that does not exist, gatling will not create a 404 error but a redirect to the same file on master.example.com. Use -X timeout,sshd to enable SSH passthrough mode. If someone connects on the SSL socket, but does not say anything for timeout (sane value: 2-10) seconds, then gatling will run an sshd in inetd mode with that socket. sshd is the full path name to sshd, plus the command line you want to give it, if any. gatling automatically appends -i, so use this for example for -u0 to disable DNS lookups. Use -O [flag/]ip/port/regex to enable proxy mode, also used for SCGI and FastCGI. To use the proxy mode, there has to be a ".proxy" file in the root of the virtual host it is meant for. Specify ip and port to point to your app server, and give a regex to match the URI. Note: the regex needs to match the full file name, so use the extension for matching. If no flags are given, HTTP proxying is used. Oth- erwise, flags specifies the proxying mode: Use S for SCGI and F for FastCGI mode. See README.php for an example. It is also possible to specify a Unix Domain socket, using the syntax --O [flag/]|filename|regex. Remember to put the argument in quotes when typing it in the shell. Gatling will not serve or list dotfiles unless they are aliased with :dotfile, e.g. to enable serving .dotfile, you have to ln -s .dotfile ":dotfile". SIGNALS
Sending gatling SIGHUP will make it close all the server sockets (so you can start a new gatling process with different options on the same ports). The old gatling process will continue serving the established connections until they are all finished. AUTHOR
Initially written by Felix von Leitner <felix-gatling@fefe.de>. LICENSE
GPLv2 (see http://www.gnu.org/copyleft/gpl.html) with an exception to allow linking against openssl. gatling(1)
All times are GMT -4. The time now is 11:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy