Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
3answers
22 views

What is the linux command to find out the number of socket currently open?

I use that : sudo watch lsof -i -4 -a -P and it returns a list. how to get the count? I tried this but doesn't work. sudo watch lsof -i -4 -a -P | wc -l
1
vote
1answer
35 views

Which permission is needed to open a TCP server socket on Linux?

I want to start a websocket server, but can't connect to it from other machines. Only when I start the websocket server with root permissions it works. So this seems to be an permission Problem. ...
1
vote
0answers
60 views

Disable kernel processing of TCP packets for raw socket

I'm working on a TCP/IP implementation, for an embedded device, that I want to test from a Linux user space process using raw sockets. raw(7) says that Raw sockets may tap all IP protocols in ...
2
votes
0answers
66 views

windows server 2003 socket connections limit

I'm trying to establish many(the more - the merrier) socket connections on Windows 2003 server. I make several server sockets and connect to them from current computer (1 server socket serves 1 ...
-2
votes
2answers
53 views

How to write the server to work behind NAT without any router configuration

I have two machines A and B: A: Client (behind NAT) B: Server (behind NAT) I want 'B' to be able to listen on port 8080 for example, so that 'A' can send packets to 'B' through that specific ...
6
votes
3answers
89 views

Does having a load balancer allow you to re-use socket connections?

I have a service where servers upload 20kb xml files to my server. There is no session, it is a single POST request and that's it. Each individual request is authenticated based on the contents of ...
-1
votes
1answer
32 views

Segments/Processes running on same UDP socket

Suppose a process in Host C has a UDP socket with port number 12345. Suppose both Host A and Host B each sends a UDP segment to Host C with destination port number 12345. Will both of these segments ...
0
votes
0answers
30 views

L2TP connection on loopback interface

I want to write Java code to act as a local L2TP server (on a loopback interface) and host a virtual (code-based) 'network'. My problem is that: L2TP uses port 1701 for both the source and ...
0
votes
1answer
54 views

Should You Continue Polling Socket For Readiness After An EAGAIN or EWOULDBLOCK Error?

I am creating a web crawler with a multiplexed download manager using Linux epoll (Linux 2.6.30.x). I pick links from a database of over 40,000 domains (each domain having between 1 and 2000 urls), a ...
2
votes
1answer
52 views

hosting people asking for my account username and password to enable curl and socket function only for me

I have hosted my site in a shared environment. My hosting people disabled socket function all together. and they said that we can enable only for you if i given a written statement. I did but they ...
3
votes
1answer
30 views

Is there a way to show list of all open sockets on a Windows server and the socket properties?

We are using a third party library in one of our applications. We would like to find a tool which will list all of the open sockets on the machine AND give us the ability to see the various TCP ...
1
vote
0answers
59 views

How to troubleshoot intermittent winsock 10054 errors on Windows Server 2003 SP2

We are getting 10054 errors in a couple of our applications on one server running Windows Server 2003 SP2. This happens intermittently, and we also have other similar servers running the same ...
0
votes
4answers
90 views

Understanding iptables chains in linux (in socket terms)

Is it true to say: A) OUTPUT chain is for the packets that are "generated" by the machine itself i.e. OUTPUT chain affects connect() function. B) INPUT chain is for packets that are "addressed to" ...
0
votes
2answers
93 views

HTTP Proxy for Windows server

I am sorry that the question is probably not what you thought it is. I have a box in US on colo which is collecting some data but is fairly easy on the resources. it runs w2008r2. and it has one NIC ...
3
votes
2answers
490 views

Exhausting Linux machine TCP socket limit (~70k)?

I am the founder of torservers.net, a non-profit that runs Tor exit nodes. We have a number of machines on Gbit connectivity and multiple IPs, and we seem to be hitting a limit of open TCP sockets ...
3
votes
1answer
67 views

Use Nginx callback after x-accel-redirect response (or use logging to socket)

my workflow is following: accept request with ruby script do some stuff send x-accel-redirect header and return ... client receives data ... client disconnected <- here I would like to run some ...
0
votes
2answers
116 views

my share hosting has disabled all socket functions

I have hosted my website with squarebrothers.com They have disabled curl_exec, fsockopen, socket_create functions. They say that these are security vulnerabilities and they have blocked. And they ...
1
vote
1answer
272 views

What are the ramifications of setting tcp_tw_recycle/reuse to 1?

I set both tcp_tw_recycle/reuse to 1 in my configuration file. What are the ramifications of doing this? If a tcp socket is re-used, does that pose a security risk? i.e. 2 different connections both ...
0
votes
1answer
133 views

Is there a rate limiting tool for linux that can limit rates per process or socket?

I found tc, which allows you to filter by ip, port etc. and then limit rates. But I was wondering if there was anything that could filter by application or limit rate given another process' socket .. ...
1
vote
1answer
319 views

Keep-alive options not working on Linux for an outgoing connection

Does anyone know if Linux supports keep-alive socket options on an outgoing connection? I made an outgoing connection with keep-alive options but netstat --timers shows off (I'm assuming timers are ...
5
votes
5answers
531 views

How to force MySQL to connect by TCP instead of a Unix socket?

I would like to analyze mysql traffic. Right now, all mysql requests are sent to the MySQL unix socket: unix 2 [ ACC ] STREAM LISTENING 3734388 15304/mysqld ...
1
vote
1answer
91 views

How to - UDP NAT traversal using BSD sockets

I have been reading the NAT traversal requiring the use of an external STUN server. There are few public STUN servers but I do not know how to use them to find out my public IP that can be used by the ...
2
votes
4answers
364 views

Does the TCP source port have to be unique per host?

I've learned that a TCP connection is identified by the tuple (source IP, source port, destination ip, destination port). Theoretically, it should thus be possible to have a client from host1:port1 ...
1
vote
1answer
138 views

Apache2 No Listening Sockets, unable to open logs while trying to configure virtual hosts

I'm trying to set up multiple domains with virtual hosts in Apache2. I'm currently getting a "Could not connect" error when I try to browse to my site, and whenever I try to restart Apache2, I get an ...
0
votes
2answers
390 views

why is TCP Connection state not changing from CLOSE_WAIT to CLOSED?

I have a client server application running in: Server: Windows server 2008 R2 [Standard] Client: Windows XP SP3 Workflow: Server listens for client connections at port YY. Client connects to server ...
1
vote
2answers
104 views

Apache HTTP Server Bind by MAC Address

I have 2 ethernet ports on my machine, both receiving their IP addresses via DHCP. I would like to run essentially two web servers on the machine. Technically, I would like to run Apache on one ...
1
vote
0answers
174 views

Accessing socket.io server via Apache served pages

I hope this doesn't come across as a terribly silly question, but I'm learning how to implement a socket.io server for my website to produce real-time applications, but my problem is that I can't ...
0
votes
1answer
72 views

How to redirect outgoing network connections?

I was wondering how would I redirect outgoing connections from all applications to a certain proxy or something like that without having to hook winsock functions on windows. I noticed Proxifier is ...
1
vote
2answers
82 views

A network socket in C++ on Redhat 5 for non-root user

I have written a program in C++ which uses sockets to talk to a windows7 machine. I have run the code as the root user and everything works fine. However I don't want to end up running the program as ...
-1
votes
1answer
434 views

Server offer with “2-sockets and 1 virtual guest”, what does this mean?

I've read in a server support website that they offer a "2-sockets with 1 virtual guest" packet for a Linux Server.. but what does the "2-sockets" part mean? I know servers may be virtualized but I'm ...
0
votes
2answers
56 views

Mysql Sock Problem

I'm having problem with this error: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) It appears every few minutes but after few seconds ...
1
vote
2answers
68 views

Allowing Sockets through the Yast FireWall

Short version: How do I allow the Yast Firewall on a Linux server to allow sockets to connect with a randomly (by os) selected port? Longer version: A part of my larger java program has a client ...
0
votes
2answers
222 views

How to determine number of open sockets? VM Resource Issues

I've got a MediaTemple DV server. I've been seeing a lot of QOS alerts for "numothersock" which is defined as: The number of sockets other than TCP ones. Local (UNIX-domain) sockets are used ...
0
votes
2answers
37 views

Help: Enable Ports

I'm trying to enable a few ports, as I have a php script that uses sockets. I added the following to my httpd.conf file: Listen 6112 Listen 6113 However, when I execute my php script, it says the ...
3
votes
2answers
1k views

What should mysqld.sock contain, why don't I have it?

Does anyone know why my /var/run/mysqld/mysqld.sock socket file would not be on my computer when I install (or reinstall) MySQL 5.1? Right now, when I try to start up a server with mysqld, I get ...
6
votes
3answers
152 views

Should a web server care about IPv6 compatibility?

Are there any IPv6 clients in the real world? If not, is there any other reason to support IPv6? (My understanding is that with the advent of WANs and such IPv6 is not necessary, hence extremely low ...
1
vote
1answer
99 views

Whats going on with mySQL

I am trying to install this application named socialengine and all is going well except on the mysql screen i keep getting this error The MySQL storage engine is not installed. I notice my sock ...
1
vote
0answers
109 views

Heavily loaded ubuntu machine connection timeout

I've got a webserver running Ubuntu 10.04 Server edition (on rackspace cloud), running nginx and jetty. It's under quite a bit of load (60-70 requests/sec or so successful). Nginx is proxying requests ...
1
vote
1answer
34 views

Connecting to a service from outside the network

I seek to run a server on the 8000 port on my machine. My computer is part of a wireless home network which is connected to the Internet by a Linksys router. In this scenario, how would a host outside ...
0
votes
3answers
60 views

How to create log-server without affecting web-server?

I am thinking of making a log server to track all requests that come to my website in someway different from apache logs and thus be able to create custom reporting system. What is the best way to ...
2
votes
1answer
75 views

Host information with TCP port

Forgive this question, I'm a designer trying to get my head around a possible network architecture. I have a wildcard domain on example.com. The client connects via TCP to foo.example.com:1234. Is it ...
2
votes
1answer
197 views

nginx does not close socket

ngnix is not closing the socket after the connection finishes. I've googled and can't come up with anything to will tell nginx to close this connection, other than what I have below: ...
0
votes
1answer
69 views

How to prevent WSEACCESS error on Send via raw socket on Windows XP SP3 for normal user accounts

I have recently begun trying to run our company apps under normal windows user accounts rather than under an account with Administrators group membership. Several of these are failing when atempting ...
0
votes
2answers
65 views

Uptime Monitoring solution that opens a constant socket connection?

I want to monitor some servers and some of them have the potential of having very unstable connectivity. This is because they are located in office locations that only have consumer internet access. ...
1
vote
1answer
229 views

Using UNIX sockets with nginx

I would like to clarify some doubts I have about using nginx to proxy requests over a cluster of thin servers (http://code.macournoyer.com/thin/). I've read many blog posts about using UNIX sockets ...
0
votes
1answer
116 views

Which language to use for"intermediary server? [closed]

I have previously posted a question asking how I could host a server on a computer without the use of port forwarding, and creating an intermediary server was suggested. Now that I have time to ...
2
votes
1answer
92 views

UDP Socket bound to one IP?

Say I have two hosts - Using fictitious IPs for this example, say host A has IP 1.1.1.1. host B has two IPs - 2.2.2.2 and 2.2.2.3. If host B is listening on port 8888, and sees a packet come in from ...
0
votes
1answer
347 views

Lighttpd with FastCGI won't create /tmp/fcgi.sock on startup?

I'm running lighttpd-1.4.19 on a debian 5 box and try to run web2py with fastcgi. The problem with that is, that lighttpd does not create the socket file /tmp/fcgi.sock. If I'm creating the file by ...
-1
votes
1answer
226 views

Options for sending data between two computers over the internet

My problem is fairly simple: I wish to send/receive simple commands between two PCs. The first PC (PC1) runs a program that controls and monitors an alarm system. The seconds PC (PC2) is any PC that ...
1
vote
2answers
129 views

Linux: How to display all sockets opened for a particular interface?

How can I display all sockets opened for a particular interface?

1 2 3