portforwarding

Should i need to open port for outgoing request ?

Hey can any one tell me should i need open a port for outgoing request on http? ...

Determine how much can I write into a filehandle; copying data from one FH to the other.

How to determine if I can write the given number of bytes to a filehandle (socket actually)? (Alternatively, how to "unread" the data I had read from other filehandle?) I want something like: n = how_much_can_I_write(w_handle); n = read(r_handle, buf, n); assert(n==write(w_handle, buf, n)); Both filehandles (r_handle and w_handle) ...

.NET SSH Port Forwarding

I am trying to build in SSH port forwarding into a .net application that I am writing. I have tried using sharpSSH, but it requires the user to input their password every time, and I don't want that. I am going to handle storing the password. I have downloaded Granados, but there is basically zero documentation for it. While I sift th...

Port forwarding in C#/software possible? Isn't it only managed by the router?

Isn't port forwarding managed by the router? Like, I've googled up some software applications that seem to port forward with great success, but it technically seems to be impossible. The packet must first go to the router. The router must forward it to the correct computer based on port forwarding rules. So how can a software application...

Local-to-remote port forwarding using Ruby/Net::SSH for remote db connection

Hello, I'm accessing a remote database using a local-to-remote port forwarding from my windows box. It works like a charm using putty for port forwarding but it fails when I try to forward using Ruby/Net::SSH. Here is my code snippet: require 'rubygems' require 'net/ssh' Net::SSH.start(remote_host, user_name, :password => password) do...

libssh2 port forward

In extension of this question http://stackoverflow.com/questions/1580750/example-code-of-libssh2-being-used-for-port-forwarding I was wondering if there's an "easier" way to connect to the locally binded addr:port. From the link: you bind a remote port and list it locally, you accept incoming data from the port and send it to another so...

Can't reach wicket quickstart from outside firewall

I have a project which, for purposes of server configuration, is just a wicket quickstart archetype. I've added some application code, but haven't really done anything to change the default jetty configuration. I can run and test my application locally using: http://localhost:8080 or: http://bekkar:8080 (my PC's network name) or: http:/...

Port forwarding on linux local loop to connect two android emulators

I am trying to communicate between two android emulators for communication , thus I am trying to forward port X to port Y on 127.0.0.1 where port X is the port I am transmitting too and Y is the one I am receiving . Is this possible and if so how do I forward the local ports? ...

iptables redirect local cennections

Hi, I used iptables -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 8085 to redirect all http requests to jboss server on port 8085. This works fine if packets come from outside. If I try to open from the same machine it doesnt work. Telnet gives connection refused. How do I redirect local connections? Working on ce...

Port forwarding on Windows 7

How do I redirect an incomming request on port xxx to localhost:yyy on windows 7? Development Server (vs 2008) only allow access from localhost which isnt good enough. I need to test my app from various computers. ...

Programmatically add port forwarding entry into router using upnp?

Does someone have a simple example on how to add a port forwarding entry with upnp into the router using c++? ...

As simple as possible crossplatform Java UPNP hole punching library.

I need a library with simple API. Defining simple: perfect solution for me would be something like described here but addopted for crossplatform use in Java (crossplatform for me is stand alone desctop app for Win, Mac, Lin)... So how API I would like to see looks like? Like oneI have in C#: using TCMPortMapper; private void Form1_Load...

Fast implementation of a port forward in Java

Hi! I have build a simple application that opens a ServerSocket, and on connection, it connects itself to another server socket on a remote machine. To implement port forwarding, I use two threads, one that reads from the local inputstream and streams to the remote sockets outputstream, and vice versa. The implementation feels a bit in...

Ports that are always open? How does softwares like bittorrent manage to communicate even without port forwarding?

Hi, How come bittorrent clients manage to communicate to servers and other peers even if user has not configured port forwarding in their routers? Of course the speed will be very less compared to when port forwarding is done, but still they manage to communicate? How??? Are there any inbound ports which are always open? Regards, ...