ports

How do I make a simple DNS server listening two ports simultaneously in python

Hi, I'm trying to build a DNS server in python. It must listen two ports (8007 - client, 8008 - admin). The client only send an URL and receives the respective IP. The admin has permissions to change the DNS table (add, remove,.. doesn't matter to this right now). So my question is: how do I implement the server listening continuously ...

what is best port for program

Which of the following ports is the best one to use for a program I'm working on using a custom protocol still under development. I'm looking for one that will be accessible to virtually every host that is connected to the public internet (ie every host that can view websites can use this port). The three main options are: port 53 udp ...

How to scan remote host port that in used?

this is the code that i get so far... import java.net.*; public class PortScanner { public static void main(String args[]) { int startPortRange = 0; int stopPortRange = 0; startPortRange = Integer.parseInt(args[0]); stopPortRange = Integer.parseInt(args[1]); for (int i = startPortRange; i <= stopPortRang...

Multiple TCP/IP servers and sharing the same "well known port" ... somehow?

I apologize for the weird question wording... here's the design problem: I am developing a server (on Linux using C++, FWIW) that provides a service to many instances of a client application running on consumer PCs. I want the following: 1) All clients first identify themselves to a "gatekeeper" server application. Consider this a lo...

Need Help: Failed to configure Virtual Server on Webmin (mixing * ports and non-* ports with a NameVirtualHost address is not supported)

Hello, I have finish configure the Virtual Server to use domain name. Then I try to restart the httpd, but it give me an error message like below: Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using xxx.xxx.xxx.xxx for ServerName [Thu Dec 24 20:20:26 2009] [error] VirtualHost xxx.xxx.xxx....

How to install a deprecated ports on FreeBSD

I'm looking for a way to install php 5.2.8 using ports on freebsd 7.0. I just don't know how to choose php 5.2.8, make under /usr/ports/lang/php5 begins by fetching php-5.2.10.tar.bz2. thx in advance guys ...

Client use high port number

Hi, Why does the client end of a connection use high port number(ephemeral ports) whereas the applications listen on typically small port numbers ? Thx in advans, Karthik Balaguru ...

What is the theoretical maximum number of open TCP connections that a modern Linux box can have.

Assuming infinite performance from hardware, can a Linux box support >65536 open TCP connections? I understand that the number of ephemeral ports (<65536) limits the number of connections from one local IP to one port on one remote IP. The tuple (local ip, local port, remote ip, remote port) is what uniquely defines a TCP connection; d...

Java: Common way to validate and convert "host:port" to InetSocketAddress?

Hello, everyone! What is the common way in Java to validate and convert a string of the form host:port into an instance of InetSocketAddress? It would be nice if following criteria were met: No address lookups; Working for IPv4, IPv6, and "string" hostnames; (For IPv4 it's ip:port, for IPv6 it's [ip]:port, right? Is there some RFC wh...

HP LoadRunner - measurements to watch outbound active TCP ports

I am trying to find out if there are any relevant measurements that LoadRunner can track, when running a load test - where it can allow me to monitor the number of active outbound ports from a given windows 2003 box. i am seeing that there are various measurements specific to CLR and IIS - such as current connections, but i am looking ...

MaxUserPort setting not being used by windows 2003 server?

i am using MaxUserPort setting (with 65000 as its value) in the registry on one of my servers (windows 2003 server). this was done to enable the box to handle a certain load profile. the setting has been working fine, along with the TcpTimedWaitDelay setting set at 30. i have setup the same settings on another windows 2003 server box, ...

How to make socket.listen(1) work for some time and then continue rest of code???

I'm making server that make a tcp socket and work over port range, with each port it will listen on that port for some time, then continue the rest of the code. like this:: import socket sck = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sck.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) msg ='' ports = [x for x in xrange...

Ruby Mobile Ports

I'm now learning Ruby because I saw it's a very powerfull language, but now I want to know what mobile ports of Ruby we have and for what devices. PS: I have a HTC S711, HP iPAQ Hx2, Nokia E61, Nokia N95, Palm T|X, Palm Z22, HP Jornada 720..., it's better if I can use it on these platforms, but I'm open to buy other devices, as I'm a mo...

writing to an ioport resulting in segfaults...

I'm writing for an atmel at91sam9260 arm 9 cored single board computer [glomation gesbc9260] Using request_mem_region(0xFFFFFC00,0x100,"name"); //port range runs from fc00 to fcff that works fine and shows up in /proc/iomem then i try to write to the last bit of the port at fc20 with writel(0x1, 0xFFFFFC20); and i segfault...specifi...

Using mac ports to install py26-gtk switches off my Mac

Hi I have Mac OS 10.6.3, python 2.6, mac ports 1.8.2. Im trying to run 'sudo port install py26-gtk' but my mac book doesn't get further than 'building gcc43', while doing that it switches off without shutting down. It is not overheating since I tried it again while my mac book was sandwiched between 2 cold packs. The mac was cool and t...

Can an iPhone/iPod Touch application open a port for remote communication without jailbreaking?

I'm researching remote control testing for an app that'll be installed on the new iPod Touch and can't tell for certain from everything that I've read whether or not an installed app can or can't open any ports for remote test instructions (that's a mouthful : ) We created something like this for the Android using adb port forwarding an...

COM port cannot be opened in asp.net

I following this article for sending SMS it is a winform application.. I have referenced all the Dll's to my asp.net application..... I use an aspx page to detect a mobile device connected to a PC..... But it alwys shows COM 'n' Port could not be opened..... using SMS; using GsmComm.GsmCommunication; using GsmComm.PduConverter; publi...

"jpeglib.h: No such file or directory" ghostscript port in OPENBSD

Hello I have a problem with compiling a ghostscript from ports in openbsd 4.7. SO i have jpeg-7 installed, I have latest port tree for obsd4.7. ===> Building for ghostscript-8.63p11 mkdir -p /usr/ports/pobj/ghostscript-8.63p11/ghostscript-8.63/obj gmake LDFLAGS='-L/usr/local/lib -shared' GS_XE=./obj/../obj/libgs.so.11.0 STDIO_IMPLEMEN...

What is the minimum number of socket port(s) required for a TCP server?

Hey SO Doing a some practice questions for exam tomorrow can't figure out this one What is the minimum number of socket port(s) required for a TCP server to connect a TCP client for communication? Surely its just two right? one for the server one for the client, but this seems to obvious. My mates thinks TCP uses two ports at the ser...

How to find which serial port is currently used?

I ve connected my mobile phone to my PC and used this, string[] lPorts = System.IO.Ports.SerialPort.GetPortNames(); and the result was an array of port names "COM4" "COM3" "COM1" "COM7" "COM6" Now,How to find which serial port is currently used/to which port my mobile phone is connected in c#? ...