port

How do I get the local port my WCF service runs on?

I'm using multiple self-hosted WCF services on the same machine. I need to open each of them on a different port (obviously), so I used "net:tcp://localhost:0" as address since I figured it would assign a free port this way. Now I need to know which port was assigned actually. This code runs on the server, so I need the local port. How ...

How to listen to a random tcp socket in node.js

I know I can create a tcp server like that in node.js var dataServer = net.createServer(function (stream) { }); dataServer.on("listening", function() { // this data server listen to a random port // but how can I get the number of port console.log(dataServer.localPort) } dataServer.listen(0, '0.0.0.0'); But I don'...

WCF SOAP1.2 Service IIS hosted behind a router with port forwarding

I have an IIS hosted WCF service with SOAP 1.2 and MLS. The service is hosted using a port 18001. What I need is to access it from the Internet (www.domain.com) using a different port. The client works from the LAN using the 18001 port, but doesn't work when using it from the Internet. Fiddler shows an HTTP 500. WCF tracing shows that th...

j2me touch gui looking like android

Hello i would like to remake a program i made for android in android it looks pretty nice and is very touch friendly now i need to make it for symbian what would be the best approach to achieve similar graphics and functionality i tried searching in j2me but the graphics look so very outdated :( here are some screens of the android i...

Java - only allow once instance of application

Possible Duplicates: How to implement a single instance Java application? How do I make sure only one instance of my program can be executed? What is a good and easy way to achieve this? I've read methods involving binding to a port. Will this interfere with other applications using the same method? ...

git remote add with other ssh port

in git, how I can add a remote origin when my host use a different ssh port? git remote add origin ssh://user@host/srv/git/example ...

how to append html code to the NSString variable in iphone

i have htmlString of string type.i want to append the view port code to this variable.How to do this?is it possible to do this? ...

How to listen on a network port in Objective-C

Hi! I am trying to make an application for iPhone that can listen for traffick on a specific network port. A server on my network is sending out messages (different status messages for devices the server handles) on a specific port. My problem is that when I make a thread and makePairWithSocket I block the port for others who want to s...

postgres connections exceeding max_connections?

we are running a very connection-heavy, insert-heavy postgres database (to the point that we should've done some connection pooling, but there's no time now). when doing some troubleshooting, i was using netstat to show me how many connections there were to postgres. i would commonly see more than what i had specified in the postgres.c...

Remove/hide port number from URL address.

It's not as simple as it looks. I've been given the task to add a third tomcat to a server that already has two Tomcats working. Problem is, this third Tomcat needs to be secure, and the port needs to be hidden. Since Tomcat 1 is currently using port 433 (secure) and Tomcat 2 is using port 80, my third tomcat is out of widely accepted ...

Using pexpect to listen on a port from a virtualbox

Hi all, I am trying to create a tcplistener in python (using pexpect if necessary) to listen for tcp connection from Ubuntu in virtualbox on a windows xp host. I would really appreciate it, if one of you could point me in the right direction. Thank you. P.S: I have limited experience in the area, any help would be welcome. ...

Free Unix Shell with open port ?

Hi,I'm in a restricted network,that way I'm looking for a free Unix shell with open port to use SSH tunnelling (remote port forwarding) and thanks. ...

inpou32.dll doesn't work on my computer

I've tried to run the following code on my PC. With PORT 0x378 (LPT1 data) it works fine. But with PORT 0x379 (LPT1 status) it always returns 126 no matter what I output in the previous line. 0x37A works too. I have Windows XP #define PORT 0x379 #define DATA 255 int main(int argc, char *argv[]) { Input input; Output output; ...

EC2 Amazon TCPS question

HI all, I tried posted on amazon forum for which I didn't get a response. TCPS is needed for my oracle database server to be ssl enabled. Looks like there is no options to open the port 2484 or any other for TCPS. Is this true on amazon instances please confirm. Thanks, SR ...

Udp socket communication on same port on a computer

Hi,I have 2 programs on the same computer, communicating using udp socket. While program A running, I want to extract some information to program B. Using the SO_REUSEADDR socket option, I am able to bind 2 programs to the same port. However, when program A sent a message, program A itself, instead of B, received the message and display ...

Porting a large C project from Unix to Windows

So, I have a large C project that was built entirely on Unix (SPARC Solaris). me and several others have begun to revisit it because their was some interest in a windows build. none of us have done this with a project of such size, so for starters, has anyone ported something from unix to windows and could maybe give me some pointers or...

How to choose which port to use for a service? (windows & .net)

I'm writing a windows service which will expose an http RESTful web service for other processes on the machine. This will be deployed to lots of machines on various corporate desktops that I have little/no control over. How should I choose which port my service should listen on? I'll make it configurable, but need to know how to choose...

Erlang port driver communicating with C program

Hi, If I want my Erlang process connect with a C shared lib I use Erlang linked in port driver. As I want my C program stores some data structures to respond to erlang calls, I must use global variables. Is there any problem? Thanks! ...

The connection of bluetooth with multi devices using SPP

Hi ~ I could connect to two devices from Android based cell phone simultaneously using SPP, but once I turn on the inputstream (like socket.getInputStream()), one of them will return 0 in the stream, that is, no data available on the stream. For example, thread A(thA) and thread B(thB) connected to device A(devA) and device B(devB) res...

Changing default port (i.e. 5037) on which adb server runs

I googled for 5 mins. I also searched for '5037' in all files in android sdk directory. I am a budding android developer and if there is no easy way of configuring adb to run on another port then I am ***king quitting android app development. ...