w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
aws ec2 iptables port 80 (http)
Well, in case anyone else stumbles upon this, I found an answer on AWS support forums: Hello, Since you are running a RedHat 6 AMI in your instance, you should check that redhat firewall rules are not blocking access to your services, and if so, reconfigure it. You can use the following command: system-config-firewall-tui to reconfigure the firewall.

Categories : Linux

Can't forward IP address to OpenVZ container
Have you bound the IPs to the server's physical interface? If so remove them from the physical interface. Have you enabled IP forwarding - in /etc/sysctl.conf: net.ipv4.ip_forward = 1 It would help to see the output from: ip addr and netstat -rn

Categories : Networking

forward(request, response) reveals user data in the address bar
The issue is not with forward() or sendRedirect(), it's with how you are sending the data from the HTML form. Remember, the <form> tag uses GET method as default HTTP method. Since you haven't given any method explicitly, it will use GET method. See this link: <!ATTLIST FORM %attrs; -- %coreattrs, %i18n, %events -- action %URI; #REQUIRED -- server-side form handler -- method (GET|POST) GET -- HTTP method used to submit the form-- enctype %ContentType; "application/x-www-form-urlencoded" accept %ContentTypes; #IMPLIED -- list of MIME types for file upload -- name CDATA #IMPLIED -- name of form for scripting -- onsubmit %Script; #IMPLIED -- the form was submitted -- onr

Categories : Jsp

Access Voilation at address 00407518 read of address C3EF9FFE on form close?
Your stomping on your strings...change to move(arr1[ind],user[1],length(user)); ind:=ind+length(user); move(arr1[ind],s1[1],length(s1)); ind:=ind+length(s1); move(arr1[ind],ip[1],length(ip));

Categories : Delphi

Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes are [http]
You can't host net.tcp under IIS 6, it supports only HTTP(s). So you are limited with HTTP bindings only (basic, ws or 2007). In order to provide net.tcp and other protocols, WAS is required. You can activate it standalone, but I advice you to install it both with IIS 7 (it is installed as a part of it), because IIS 7 gives a convinient service management platform in addition. Another solution it so change the hosting environment to make it self-hosted or service-hosted, using ServiceHost class instance, which supports tcp protocol.

Categories : Wcf

Store and forward HTTP requests with retries?
There are couple of possibilities. One option is to use Common Address Redundancy Protocol or carp. Brief description from the man page follows. "carp allows multiple hosts on the same local network to share a set of IP addresses. Its primary purpose is to ensure that these addresses are always available, but in some configurations carp can also provide load balancing functionality." It should be possible be configure IP balancing such that when a primary or master http service fails, the secondary or backup http service becomes the master. carp is host oriented as opposed to application service. So when the http service goes down, it should also take down the network interface for carp to do its thing. This means you would need more than one IP address in order to log into the mach

Categories : Http

Forward HTTP requests to a private server
your REST API must be public facing. In my experience, it is best to have 1 exposed API and have all other resources to be handled on the backend of the API in which those external dependencies are on private subnets, so that way you can reduce the potential for security issues. Public - RESTful API, RPC endpoints - Websites, etc -------------------------------------- Private - Databases, queues - VPN-tunnelled servers - additional servers / external resources

Categories : Rest

Forward data from UDP Socket to HTTP Server Node.js
This line looks suspiciously to me: socket.on('udp message', function(message) { res.end(message) }); The client code is run in browser, you can't access res object. You can try to alert instead: socket.on('udp message', function(message) { alert(message) }); In the real application, you will probably want to process the message and modify HTML of the page accordingly.

Categories : Node Js

Burp Extension to capture, modify and forward HTTp packets
I wonder why you're trying to write a Burp extension to capture packets. Wouldn't you use a sniffer for that? Anyway, thanks to your code, I was able to get myself started writing extensions. Here's what I found with your method processHttpMessage " [" + callbacks.getToolName(toolFlag) + "]" Something is buggy here, possibly in the Burp Suite (1.5.16); I couldn't manage to get getToolName to print anything even with a hardcoded int, and it's not possible to put a debugger on Burp, so I gave up. System.out.println( (messageIsRequest ? "HTTP request to " : "HTTP response from ") + messageInfo.getHttpService()); System.out.println(" [callbacks.getToolName(toolFlag)] = "); System.out.println(callbacks.getToolName(toolFlag)); Anyway, this will print to the

Categories : Http

Text FIle - Access forbidden through http://localhost but OK if accessed http://private-ip ( LAMP )
Solved - looks like this was due to me keeping the doc root in a folder under /home. Once i switched that back to the /srv/www/htdocs folder , everything was ok. I made no other changes in the httpd.conf. - App/My work has been stable for a few weeks already

Categories : PHP

Forward email using Amazon SES: 554 Message rejected: Email address is not verified.
Not a lot of options here. Amazon SES is a mail notification service more than a pure SMTP server. Because of this, all of your from emails/domains must be previously verified and all of your mail sessions must be properly authenticated. The only alternative i can figure out is to configure postfix as a proxy instead of a relay, so it replaces the from header with a well known address, verified by SES, and properly authenticates in SES.

Categories : Email

how to access MySQL on OpenShift without rhc port forward?
You can access the gear directly just as you would any other Database not housed on OpenShift. When you created the MySQL cartridge you should have been given a connection string: mysql://OPENSHIFT_DB_GEAR_DNS:OPENSHIFT_DB_PORT/... You can use that provided connection string and authentication to access the application. Note: These strings above are environment variables on the gear, and will typicaly translate to something like: mysql://app-namespace.rhcloud.com:55582/ This can be used from outside of the gear by other applications to access the database that is hosted on OpenShift. Note: The OpenShift forums have lots covering this topic.

Categories : Python

postfix 2.9.6.1 forward all mail to an external mail address
Finally found the answer. Listing here for posterity. Add the folowing line to the end of your main.cf file vi /etc/postfix/main.cf virtual_maps = hash:/etc/postfix/virtual, regexp:/etc/postfix/virtual-regexp Create a file which lists the mail address you want all mails to be sent to vi /etc/postfix/virtual-regexp Add the following: /.+@.+/ forwardingmailaddress@gmail.com add it to postmap postmap /etc/postfix/virtual-regexp you will need to add a virtual file. touch /etc/postfix/virtual now add it to postmap postmap /etc/postfix/virtual

Categories : Ubuntu

Swizzling a method with variable arguments and forward the message - Bad Access
Unfortunately, no. This is why functions which take variable arguments should provide identical implementations which take va_lists. APIs which provided this functionality (e.g. objc_msgSendv) have been marked 'Unavailable" since ObjC 2. Perhaps it would also be good to figure out why this functionality was removed. Variadic Macros would often solve the issue, but not in your case because you need a function pointer to swizzle. So I think you will need to look to your system implementation to understand the mechanics of the VA List on your targeted implementations.

Categories : IOS

creating a forward https proxy using http-node-proxy
There are https options which must be specified when handling the https traffic. Here is what I am doing in my proxy setup. var fs = require('fs'), httpProxy = require('http-proxy'); var proxyTable = {}; proxyTable['domain.com'] = 'localhost:3001'; proxyTable['domain.com/path'] = 'localhost:3002'; proxyTable['sub.domain.com'] = 'localhost:3003'; var httpOptions = { router: proxyTable }; var httpsOptions = { router: proxyTable, https: { passphrase: 'xxxxxxx', key: fs.readFileSync('/path/to/key'), ca: fs.readFileSync('/path/to/ca'), cert: fs.readFileSync('/path/to/crt')} }; httpProxy.createServer(httpOptions).listen(80); httpProxy.createServer(httpsOptions).listen(443); The documentation for https is on their github page as well. https

Categories : Node Js

Extracting IP address, webbrowser's description, country from a HTTP request
There is quite a bit of info on this available. Much depends on what you are running on the server: Get Client IP using just Javascript?, Getting a user country name from originating IP address with Ruby on Rails

Categories : Java

Download String From Address "http://www.last.fm/music/Boney%20M./+images"
Just tried it on a test application under VS2012 Express, and it's working as intended. Some thoughts: The problem may lie in the fact that you are behind a proxy, and you may need to create a WebProxy object and provide your credentials. Sometimes (which is not the case, since it worked for me) sites expect some headers - for example HTTP_REFERER.

Categories : C#

IIS external access by IP address
Here are some thoughts I have on configuring the resources on your network. Configuration Notes It looks like you have a router, so it is your router that is bound to the external IP, not your computer. In that case your computer does not have the external IP (75.75.75.75). It only has the internal IP (10.0.0.6). You should set up your router to forward port 80 to your computer's internal IP address. You should bind IIS to the internal IP as well. I should note that given your screen shots above, that you are close to already doing this. The only thing I would remove from your configuration above is the IIS binding to the external IP (75.75.75.75). Testing When testing your site, a potential issue is with the router itself. Generally a router will not let an internal machine access an

Categories : Networking

Logstash and iptables
you should check you iptables rules (mostly filter table) to see if there is any rule that prevents the transfer: thigs u should probably check: source IP destination IP packet type (TCP/UDP) network interface further more you may check the source-ip and the destination-ip as well

Categories : Ubuntu

Allow access to all files from only 1 IP address and redirect all others to other file
You can use mod_rewrite for the same. Add following in your .htaccess file: <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REMOTE_ADDR} ^80.40.20.[0-9]$ # your ip here RewriteCond %{REQUEST_URI} !^/subscribe.php RewriteRule .? /subscribe.php [R,L] </IfModule>

Categories : PHP

Access data at memory address with ctypes
Your C function returns void, not a CONTEXT *. So, your code is just casting random uninitialized memory to a CONTEXT *, and then trying to deref it. On top of that, even if it did return a CONTEXT object by reference, tmp[1] would try to deref the memory after that object, so it would still be garbage. When you try to interpret random memory as a double, you're going to get segfaults or values like 2.15880221124e-314 if you're lucky—if you're unlucky, you'll get correct-looking but still random values like 0.0. Meanwhile, since your C function modifies its arguments in place, you don't need to do anything fancy here. Just use the variables you passed in. So: def runner(): kk = (1,2,3) n = 3 mm = n + 1 wts = (c_double * n)(1, 1, 1) res = (c_double * mm)(0)

Categories : Python

Not able to access Website using ip address, DNS working fine
In the vhost config for the www.rocketbanner.com domain, add a server alias for the IP address: ServerAlias 72.167.164.203 Otherwise, if the 72.167.164.203 "name" isn't associated with a vhost, it ends up being handled by a default vhost which may not be the one serving www.rocketbanner.com.

Categories : Htaccess

Can I get the IP address of the access point to I am connected to over wifi?
I assume you mean the outside (public) IP address of the access point that the device is connected to. If so, yes there is a simple way to get the public IP address of the access point that a device is connected to. Simply setup a script on a web server that will echo back the IP address of any client that connects to it (similar to www.whatismyip.com). Then, your device just needs to do a GET request to the script, and this will return the outside IP of the access point that the device is connected to.

Categories : Android

Attempting to access page using IP address instead of localhost
Your machine may have a firewall installed that's blocking the traffic from the other computers. If you're running Windows, for example, try opening the "Windows Firewall" item in the control panel and creating a rule to allow inbound traffic on port 80.

Categories : Eclipse

This result is a forward only result set, calling rewind() after moving forward is not supported - Zend
You receive this Exception because this is expected behavior. Zend uses PDO to obtain its ZendDbResultSetResultset which is returned by ZendDbTableGatewayTableGateway. PDO result sets use a forward-only cursor by default, meaning you can only loop through the set once. For more information about cursors check Wikipedia and this article. As the ZendDbResultSetResultset implements the PHP Iterator you can extract an array of the set using the ZendDbResultSetResultset:toArray() method or using the iterator_to_array() function. Do be careful though about using this function on potentially large datasets! One of the best things about cursors is precisely that they avoid bringing in everything in one go, in case the data set is too large, so there are times when you won't want to put it all i

Categories : PHP

Routing by linux iptables
Make sure that you have enabled IP Forwarding on VM2 as your VM2 is acting as a router. I've also posted an article on How to configure Ubuntu as a router using IPTables.

Categories : Linux

Is there a way to access the user's own address book data (first & last name, e-mail) in iOS?
I think you need to pre fill the values from your device's address books. If so you have to dig your head into AddressBook Framework in order to access the contact details. Below link is from iOS developer link http://developer.apple.com/library/ios/#documentation/AddressBookUI/Reference/AddressBookUI_Framework/_index.html http://developer.apple.com/library/ios/#documentation/AddressBook/Reference/AddressBook_iPhoneOS_Framework/_index.html#//apple_ref/doc/uid/TP40007212

Categories : IOS

There is a way to start a rails server changing the access address?
If you want to change the route of your specific page you can change it in routes.rb. If you want to change the IP and PORT on which you serve your application, you can do: rails s -b $IP -p $PORT.

Categories : Ruby On Rails

Creating firewall rules using iptables
Yes and no. No because: iptables works by defining how to treat packets based on their categorization into chains (INPUT, OUTPUT, FORWARD, ...) first and only then also on specific characteristics (source or destination address, protocol type, source or destination port, etc). You can never define an iptable rule that does not apply to a specific chain. INPUT, OUTPUT, and FORWARD are the default chains of the iptables system. INPUT addresses everything with destination localhost (i.e. that is addressed to your network device); OUTPUT applies to everything with source localhost (i.e. that comes from your computer). Yes because: You can define custom chains. You can do that like so sudo iptables -N MYCHAIN then you can send packets from both the INPUT and the OUTPUT (and if you like t

Categories : Linux

How can I check the hit count for each rule in iptables?
iptables will list packet and byte counters if you specify option -v for verbose, e.g. iptables -vL. Likewise iptables-save will list all entries including the mentioned counters for each chain, but not for each table entry (on some systems iptables-save requires option -c to include counters).

Categories : Linux

Insert line in iptables's file
sed 's/-A INPUT -i lo -j ACCEPT/-A INPUT -i lo -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT/g' <filename> > temp ; mv temp <filename> Replace the <filename> by the actual file. This works only if the preceding line is -A INPUT -i lo -j ACCEPT

Categories : Bash

Managing thread access to unique RAM address from Multi Cores
Are threads of the same process (program) ever distributed across multiple cores? Yes and no. Check the documentation for your operating system. In a multi core/processor system does each core have access to the whole of RAM or is the RAM logically divided up amongst cores? All cores can access all RAM - within reason - and subject to conditions placed upon it by the operating system. In some architectures a single CPU is a "gatekeeper" to some aspects of the system. Please check the documentation for your operating system and system architecture. Would it not be possible for the two cores to be processing different threads each of which needs to "lock" access to a RAM address in order to guarantee atomicity. On a single core, every assembler code instruction is atomic as th

Categories : Multithreading

Access to path [Destination Address] is denied - when creating a new directory - VB.NET
I am not sure of you have the error in the CreateDirectory call or afterward. I am sure that the FileUpload control doesn't have a SaveAs method and this is on the PostedFile object and that you need to pass a FileName not a Directory name Dim directoryPath As String = Server.MapPath("~/bussnisses") If Not Directory.Exists(directoryPath) Then Directory.CreateDirectory(directoryPath) End If Dim destFile = Path.GetFileName(FileUpload1.PostedFile.FileName) destFile = Path.Combine(directoryPath, destFile) FileUpload1.PostedFile.SaveAs(destFile) Label1.Text = "complete"

Categories : Asp Net

Access FTP via HTTP?
FTP and HTTP are two different protocols that have nothing to do with each-other. You need to run an HTTP server. You can either run an HTTP server that exposes the same files (like Mozilla does), or write an HTTP proxy for the FTP server.

Categories : Htaccess

Auto block IP's with iptables if rate is over 100 in 1 minute?
I believe this question belongs on serverfault, and that you may have an answer here.

Categories : Linux

how to append open ports to an already functional iptables?
The answer I have come up with is specific to Salt, but it works. The answer is not to use lokkit and use salt's native iptables state. https://salt.readthedocs.org/en/latest/ref/states/all/salt.states.iptables.html Simply use this state to append the additional ports you want opened.

Categories : Linux

call IPtables command within python script
Your command is full of syntax errors due to missing spaces, as shown below: iptables = subprocess.call( 'iptables -I FORWARD -eth 0 -m ' + protocol + ' -t'+protocol ^---here + '--dport ' ^-- here + port + '-j DNAT --to-destination' ^--here + ipAddress) ^---here As generated, your iptables line will look like -ttcp--dport 80-j DNAT --to-destination1.2.3.4 -ttcp--dport is parsed as a SINGLE argument, ditto for 80-j and --to-destination1.2.3.4

Categories : Python

Rails App on Port 80 on Amazon EC2 - Use Nginx or IpTables
Here they apparently solved the problem you have with unicorn -p: Unable to start unicorn on port 80 using capistrano The other two solutions are also both going to work well. With IPtables you can redirect the incoming traffic from port 80 to your unicorn socket listening on 8080 and back. That's happening on the TCP layer. The nginx approach is a transparent proxy setup. All magic is happening on the HTTP layer which gives you the advantage of being able to manipulate requests and responses, set up caching etc. nginx is a lovely tool which probably beats unicorns possibilities by far (and won't really slow you down while)

Categories : Amazon

how to access billing address element in one page check out module in magento?
With the object returned by the getCustomerBillingAddress method you can do the following: $street = $address->getStreet();//or $address->getData('street') $country = $address->getCountryId();//or $address->getData('country_id'); Basically any element from the $_data member of the address can be called like this. [EDIT] You can get the customer billing address like this: $address = $this->getCustomer()->getPrimaryBillingAddress() Then you can work do $address->getStreet() and other.

Categories : PHP

Struts2 jquery tab not loading after saving the jsp, when i access the application by using ip address than localhost
Some js or css files are not loading due to changing the host & hence, the tab is not loading. You should import js & css files using relative path. <script src="/js/relativeToWebRoot.js"></script> Press F12 in chrome & check the Console tab for errors.

Categories : Misc



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