w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Forwarding from subdomain to port not working
Solution (no idea where the technical difference is): <VirtualHost Server-IP:80> ServerName http://domain DocumentRoot "C:/xampp/htdocs" </VirtualHost> <VirtualHost Server-IP:80> ServerName http://subdomain.domain Redirect / http://domain:port </VirtualHost> I even didn't have to make any entries in the Windows host file. NameVirtualHost wasn't necessary either.

Categories : Apache

Cocoa server with user friendly automatic port forwarding or external ip lookup
The port of your app will not change. The IP change could be handled by posting your servers IP to a web service every hour or whatever time period you want. Server should run a URL http://your-web-service.com/serverip.php?ip=your-updated-ip and then have your serverip.php handle the rest (put it into a mySQL db or something) When your client start it should ask your site for the IP and then connect to your server with that. This is a pretty common way of handling this type of things.

Categories : Objective C

How do you create a peer to peer connection without port forwarding or a centeralized server?
It is possible. I see at least 2 parts to your question. (It is not going to be HTTP packet. It is a lot more complex then that.) First off, I believe you might be talking about a concept called decentralized P2P network. The main idea idea behind decentralized peer-to-peer network is the fact that nodes conjoint in such a network will not require central server or group of servers. As you might already know, most common centralized peer-to-peer networks require such centralized system to exchange and maintain interconnectivity among nodes. Basic concept is such, as new node will connect to one of the main servers to retrieve information about other nodes on the network to maintain its connectivity and availability. Central system gets maintained through servers constantly synchronizing

Categories : Misc

Apache traffic forwarding - route incoming port 80 traffic for a particular host to a different physical server
I would use Nginx as a reverse proxy. There's some information on how to do that Here. Depending on the details of what you're trying to do, you might have a different configuration. In addition to the tutorial above, here is some more information about Nginx and reverse proxies: Reverse Proxy Module for Nginx Reverse Proxy Wikipedia article The way I would do it for your setup would be to make nginx the default httpd, by having it listen on port 80, then switch your Apache virtual configuration to 8080. Then just follow the links I've provided for a very vanilla style setup. Basically, you'll configure the new URL to forward to your other server in Nginx, then have all other URLs go to 8080, where it will hit your current Apache stack. If you were so inclined, you could move your Apach

Categories : Apache

SSH -L connection successful, but localhost port forwarding not working "channel 3: open failed: connect failed: Connection refused"
ssh -v -L 8783:localhost:8783 myacct@server.com ... channel 3: open failed: connect failed: Connection refused When you connect to port 8783 on your local system, that connection is tunneled through your ssh link to the ssh server on server.com. From there, the ssh server makes TCP connection to localhost port 8783 and relays data between the tunneled connection and the connection to target of the tunnel. The "connection refused" error is coming from the ssh server on server.com when it tries to make the TCP connection to the target of the tunnel. "Connection refused" means that a connection attempt was rejected. The simplest explanation for the rejection is that, on server.com, there's nothing listening for connections on localhost port 8783. In other words, the server software that yo

Categories : Osx

Django url port forwarding
This is not really a Django issue, but here are a number of possible options to pursue: Have your customer contact their network administrator and see if an exception rule can be made for the firewall to allow the streaming video across this particular port from this website. Look into using a web proxy that supports video streaming to get around the firewall rule if it cannot be changed. See if there is an option to embed the video into your website that uses a different port. Contact "streamingurl.com" and see if there is an alternative port that can be used to stream the video - some websites have an alternative even if it is not actively advertised.

Categories : Django

Programmatically port forwarding using c#
http://www.fluxbytes.com/csharp/upnp-port-forwarding-the-easy-way/ It is targeted at Mono but Mono is a compliant CLR and BCL, so it will work on the standard Windows .Net too. Word of warning: I have not tested that library nor the guide myself. Port Forwarding tells the router to do something along the lines of: "Whatever traffic comes in via port X is mine, send it to my IP". More info: https://en.wikipedia.org/wiki/Port_forwarding

Categories : C#

Alternatives to port forwarding
STUN/Hole Punching is primarily for UDP but you need something for TCP. There is a TCP version of STUN called STUNT but that is not an option in your case as you need smart logic that can't be implemented in plain browser without any active-x or extension. As you mentioned that IPv6 is not an option for you so you only have one option here. -- Your web-server need to be on Public IP address. Either you host your web-server directly on Public IP, or you use port forwarding from Public interface to your web-server. There's no other option in your case !!

Categories : Dotnet

can the different hosts (not ip) forwarding to the same port externally?
I don't have much experience in that, but I think you will need a third server/firewall/proxy listening for the incoming host and route it accordingly. Again, I don't have much experience in that, so I'm not sure if the firewall is able to do that.

Categories : Sockets

SSH tunnel, port forwarding and services
if you enable GatewayPorts yes in your sshd_config on server b then it is possible to connect from the outside to server b and make use of the established tunnel to server a. by default GatewayPorts is disabled and the tunnel will only work locally.

Categories : Linux

Java, gaming, and port forwarding
Port forwarding is only required on the server. Any packets bound for the client will be auto-forwarded from the initial request thanks to the action on many NATs. So, you only need to forward the port on the server. If using Socket and ServerSocket you need to forward TCP if your router gives you the choice. If using DatagramSockets, forward UDP at either of the endpoints. (if you had to forward on clients, you most likely wouldn't have been reading this page without forwarding port 80)

Categories : Java

Cannot start Jenkins on port 80 on debian 7
I have the same problem, and I found out that you can't listen to ports below 1024 without root privileges. There are couple of things we can do but I think the safest one is: Redirect port 80 to 8080 with iptables # iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080 Besides that, you can run jenkins as root, by chown and chmod but I think that can be dangerous. The other possibilites are covered here: http://serverfault.com/questions/112795/how-can-i-run-a-server-on-linux-on-port-80-as-a-normal-user

Categories : Linux

Forwarding an established TCP connection to another process on another port?
This problem has a pre-existing standard solution, generically known as inetd. It has been around for a long time, first in Unix systems and then Linux. The more modern implementation is xinetd

Categories : C

Connection Reset when port forwarding with Vagrant
I had Django listening on 127.0.0.1:8000 (default) As explained in Mitchell's answer here: Vagrant's port forwarding not working I should have been listening on 0.0.0.0. Here is a quote of his answer: I wanted to add an additional note that often this is caused by the server within the VM because it binds to 127.0.0.1, which is loopback. You'll want to make sure that the server is bound to 0.0.0.0 so that all interfaces can access it. If you're using Django, you want to start the dev server like this: ./manage.py runserver 0.0.0.0:8000

Categories : Django

Rewrite for owncloud shorty - from a different server
This is possible using a single redirection rule: RewriteRule ^/go/([A-Za-z0-9]{4,12}) http://cloud.domain.com/public.php?service=shorty_relay&id=$1 [QSA,L] This is mentioned in the documentation for Shortys 'Static Backend'.

Categories : Apache

Vagrant Apache2 http/https port forwarding
For your use case, the default Networking mode - NAT is not a good choice because you have multiple ports (at least 80 and 443) to be forwarded. I recommend using bridged mode so that the guest appears to be a physical host in your LAN and you will be able to access HTTP/HTTPS using its LAN IP. You don't need to do port forwarding (actually you cannot do port forwarding in VirtualBox for bridged mode). To use bridge mode (Public Network), in your Vagrantfile add config.vm.network :public_network into the Vagrant.configure block and do a vagrant reload, it should work flawlessly. Use ifconfig -a to check, a 2nd interface will be added for bridged. Reference: http://docs.vagrantup.com/v2/networking/public_network.html

Categories : Ubuntu

selective proxy port forwarding on Apache httpd
This worked for me. Might be of some help for others. <VirtualHost *:80> RewriteEngine on RewriteCond %{HTTP_HOST} ^blog.example.com RewriteRule ^(.*)$ http://www.example.com/blog/$1 [L] ProxyPreserveHost On ProxyPass /blog ! ProxyPass / http://localhost:9000/ ProxyPassReverse / http://localhost:9000/ ServerName example.com </VirtualHost>

Categories : Wordpress

Python library for caldav server (owncloud)
You probably want to provide more details about how you are actually making use of the API but in case the query command is indeed not implemented, there are other Python libraries at http://calconnect.org/caldav/implementations/librariestools.html .

Categories : Python

Free PaaS without / with less port forwarding to bind to custom ports?
I have found one way! That is to use the DIY cartridge (Do it yourself) in Openshift, install Python and run "Websockets". Of course this still means that the transmissions should be of HTTP. The other option is to move to IaaS (infrastructure as a service) rather than PaaS.

Categories : Python

Access Owncloud data files stored same server from php
I assume you try to load the image directly via a url pointing to the files location inside the owncloud file structure? owncloud will prevent this, in the end you are trying to access internal or private data via a public url. That would be a huge security flaw. If the image is inside a users file hierarchy inside owncloud then you can access it using the "official" link, as long as it is shared by the user. The only workaround would be to use administrative means on server level. This is of course something the owncloud software cannot prevent. If you have those rights you can create a second Directory / Location inside the http servers configuration to provide a second base url publishing those files. This would access the file system whilst bypassing the owncloud software. But take

Categories : Image

Opening port so that pgAdmin on Windows 7 can connect to PostgreSQL on Debian on VirtualBox
What about your pg_hba.conf file? Have you configured it to accept connections from hosts in the 192.168.56.0 network? Try to add this line and restart Postgres: # VitualBox Host-Only Adapter host all all 192.168.56.0/24 md5 If it's a testing environment you could even replace 192.168.56.0/24 with 0.0.0.0/0 and forget about it.

Categories : Postgresql

Connections at Login Server, forwarding to World Server
You can check the image on this page: http://next-gen.cc/ What you are looking for is a connection server that will maintain one connection to a client socket and keep the state of the client (connected, authenticated, playing, disconnected). Once the player logs in, the connection server opens its own socket to the right game server and forwards all messages there, also when a game server wants to send the client data it will send it to the connection server which in turn sends it to the client. In other words, make your login/connection server function as a router between the client and your game world.

Categories : C#

listener port and serving port in server
You don't really want to limit ports as much as you want to limit threads, that's why many servers use a threadpool that contains way less threads than the amount of available ports.

Categories : Java

connect to tcp server with different port.not a port that is set.c language
The size passed to bind() is wrong. Assuming sa_loc is declared as: struct sockaddr_in sa_loc; It shall be: ret = bind(sock_descriptor, (struct sockaddr *) &sa_loc, sizeof(struct sockaddr_in)); or even better (and less error prone): ret = bind(sock_descriptor, (struct sockaddr *) &sa_loc, sizeof(sa_loc)); Btw: It's done correctly in the call to connect().

Categories : C

How do I prevent Google Apps Script from forwarding sent email to the forwarding address
I believe it happens because the copy google's servers (running the apps script) places in the sending account's mail folders is treated by gmail as a new incoming message that just happens to have the from field set to be that account itself. It then performs whatever rules it always performs on incoming messages. You can set your rules for that gmail account to forward except in the case that the from address is your own email address. When you create the filter enter "-SEND@example.com" in the from field.

Categories : Google Apps Script

Data forwarding server
I would use a third pc (a server) that acts as a bridge for Android and PC. I wrote a web service in .NET for a virtual server on the internet. Both Android and PC know the ip address (or the domain name) of the server. The PC talk to server using .NET native web service call, the Android uses ksoap. For more infomration about ksoap for android look here: http://code.google.com/p/ksoap2-android/ EDIT: I suppose you can have the web server in the pc but you need to configure your modem to forward specific ports to the pc. But if you have no static ip address you need to reconfigure the ip address on Android device everytime your modem is rebooted (or switched off/on). You can also try to use dynamic dns services...

Categories : C#

Cannot receive emails from Debian server
You can't send emails from local server directly You can take a look at this question Send email from localhost localhost term means it's not equipped with mail capability even though you can try this code to know if it has built in mail server or not if (mail('email address','subject','message') === true){ echo 'SENT'; }else{ echo 'NOT SENT'; }

Categories : PHP

Opscenter 3.2.x not working on Debian 7
This is a known issue, but the workaround is documented here: http://www.datastax.com/documentation/opscenter/3.2/webhelp/#opsc/troubleshooting/opscTroubleshooting_g.html#topic_opsc_troubleshooting See the section relating to that import error.

Categories : Cassandra

How to create a HTTPS Proxy Server on Debian
https involves encryption of the data using an asymmetric (private/public) key that identifies the webpage, based on it's hostname. therefore, you cannot build a transparent https-proxy - unless you have the private keys for all the https:// servers out there (or at least those you want to access through the proxy), which is highly unlikely. if you do have those keys (e.g. because you only want to provide https:// access to an ordinary http:// server that lives somewhere behind a firewall), check out the mod_proxy module for apache.

Categories : Linux

How to setup GIT server on Linux Container in Debian
You may want to read this HowTo of setting up GIT server on Debian

Categories : GIT

SOAP and NTLM Authentication between Debian an IIS Server
For information we finally found a workaround to resolve the problem. The problem was due to the fact the IIS Server needed an AD Login / Password to let our PHP application connect to the Web Service. What we did was using an other url to reach the Web Service, an URL needing an "anonymous" account. It means the account is defined by the application itself and not the AD. Consequently we don't need to use NTLM authentication, where the problem was coming from.

Categories : PHP

What is changelog.Debian.gz file during debian packaging?
When packing in debian, inside your project directory there's a directory named debian, which is where we keep files regarding instructions of how to pack your software, as well as relations with other packages, etc. We can call it you package control files. Among them, there's one called changelog, which looks like this: mypackage (version-revision) unstable; urgency=low * Changelog messages -- Your Name <your@email.com> Mon, 13 Aug 2012 14:09:01 -0300 (...) This file is used by the packaging software (dpkg-buildpackage) to know the name and version of your package. It also has info like the mantainer, changelogs, etc. After you build the package and install it, this file will be located at /usr/share/doc/mypackage/changelog.Debian.gz compressed in gzip format. You can che

Categories : C++

forwarding server side DDP connection collections to client
I realize that this is a pretty old question, but I thought I would share my solution. I had a similar problem as I have two applications (App1 and App2) that will be sharing data with a third application (App3). I couldn't figure out why the server-side of my App1 could not see the shared collections in App3...even though the client-side of App1 was seeing them. Then it hit me that the server-side of my App1 was acting like a "client" of App3, so needed to subscribe to the publication, too. I moved my DDP.connection.subscribe() call outside the client folder of App1, so that it would be shared between the client and server of App1. Then, I used a Meteor.setInterval() call to wait for the subscription to be ready on the server side in order to use it. That seemed to do the trick. Here'

Categories : Meteor

my rails application not work on my debian server in production
You most likely have your web server pointed at <some_path>/app instead of <some_path>/app/public. Example Apache VirtualHost: <VirtualHost *:443> ServerName www.app.com DocumentRoot "/var/app/current/public/" CustomLog /var/log/apache2/app_log combined ErrorLog /var/log/apache2/app_log <Directory /var/app/current/public> AllowOverride all Options -MultiViews </Directory> SSLEngine on SSLCertificateFile /etc/ssl/certs/app.crt SSLCertificateKeyFile /etc/ssl/private/app.key SSLCertificateChainFile /etc/ssl/certs/bundle.crt </VirtualHost>

Categories : Ruby On Rails

How to connect pybluez RFCOMM server socket on Debian?
I offered a bounty, but found the solution myself. :) Posted on another answer but this may also apply to your problem. On certain versions of Debian (Raspbian etc) and maybe some others distros. The server_sock.accept() will by default just hang and never accept a connection - even from a paired device! I'm in some cases even convinced the socket isn't open at all. However, a solution to this is really simple. Update your /etc/bluetooth/main.conf file, add a line or change the existing so it looks like this: DisablePlugins = pnat Then restart the Bluetooth service: sudo invoke –rc.d bluetooth restart It now MAY have been fixed. Good luck! Reference: RFCOMM without pairing using PyBluez on Debian?

Categories : Android

objective c message forwarding with forwardingTargetForSelector not always working
You shouldn't ever return self; from forwardingTargetForSelector:. Your check should mean it never is but if you ever did return self it would cause an infinite loop. You need to be sure that a super class isn't implementing the method as this will prevent forwardingTargetForSelector: from being called. Check if the method is actually called. forwardingTargetForSelector: is also only called when a method is called on your controller that it doesn't respond to. In your example you aren't calling [self ...];, you're calling [self.delegate ...]; so forwardingTargetForSelector: will not be called.

Categories : Objective C

Google App Engine: Only local server creates infinite loop when forwarding to JSP
Use Chrome devtools, network tab to see what URLs are in the infinite loop. Try creating a hosts entry in %SystemRoot%system32driversetchosts, eg.devserver.example.com 127.0.0.1 and use that in place of "localhost"

Categories : Java

Making a user in Samba - Debian 6 32bit - No commands working?
Solution: Setup Apt-get upgrade sudo apt-get install samba smbfs sudo mkdir –m 0777 /pathofdrive Editing the samba config sudo vi /etc/samba/smb.conf Copy this: # Global parameters [global] workgroup = HOME netbios name = SAMBA server string = Samba Server %v map to guest = Bad User log file = /var/log/samba/log.%m max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 preferred master = No local master = No dns proxy = No security = User # Share [Data] path = /disk2/data valid users = joel read only = No create mask = 0777 directory mask = 0777 Adding a user: # useradd -c "Joel Nahrgang" joel # smbpasswd -a joel New SMB password: secret Reenter SMB password: secret Added user joel Restarting Samba:

Categories : Linux

Subversion: how to make a working-directory on debian-webserver using windows repositories?
You need to be running an actual Subversion server (Apache or svnserve), not simply accessing a repository created on a file share via file:///. Once you have that set up, just perform an svn checkout just like you would any other working copy.

Categories : Linux

Openvpn server not forwarding ping traffic from tun0 to eth0 for rest of the hosts in the subnet
If you don't have rules in your firewall to forward the traffic you need to specify those. iptables -I FORWARD -i tun+ -o eth0 -j ACCEPT ###### iptables -I FORWARD -i eth0 -o tun+ -j ACCEPT

Categories : Misc



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.