w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Accessing WAMP's localhost from another device via host's IP address stopped working
Open your httpd.conf file, find "Controls who can get stuff from this server." it is the section that defines which IP address gets access to your Apache server. By default, it only allows access from localhost or 127.0.0.1, you need to add the line Allow from all at the end of this section. Now save the file, close it, and restart Wamp. Viola! You'd be able to access Apache server installed on your machine via IP address. Please mark it as an answer if it solves your question.

Categories : Iphone

Localhost vs ip-address (e.g. 192.xxx.x.xxx)
"On most computer systems, localhost resolves to the address 127.0.0.1, which is the most-commonly used IPv4 loopback address..." (https://en.wikipedia.org/wiki/Localhost) It's likely that the "localhost" host name is being resolved to the loopback interface IP address (127.0.0.1), as that is the standard on most machines. If you want the server to respond to another IP address, you'll have to configure it.

Categories : Apache

error when i used my ip address instead of localhost as URL
The IP address you get from google is the IP address of your router. It does not point to your computer. As some ppl said, besides there is different ports to use in a connection and your WAMP installation is "listening" on the port 80 of your computer (127.0.0.1) When you access to the 117.195.230.41 you are accessing to the IP that your Internet Service Provider gives to your installation. So you need to access your router and redirect all the querys to the 117.195.230.41 on port 80 to your port 80 and the IP of your computer in your local network.

Categories : PHP

Akka AssociationError - LAN address vs localhost
Try changing your remote section to: remote { transport = "akka.remote.netty.NettyRemoteTransport" log-sent-messages = on netty.tcp { hostname = "127.0.0.1" } } Because the config is wrong and you are not specifying the hostname property, it defaults to using the host ip. Setting up the config as above will allow you to use the loopback instead.

Categories : Scala

VBScript not working with localhost but with ip address
Nowhere you have accessed the hostname or the IP address in your above code. If it is working with your IP and not with the host name, then I can imagine only below two things that could have gone wrong. DNS mapping with IP Address. Incorrectly spelled hostname. From your description, it looks like you have written "localhost" as "loclhost" Please provide the exact code which is throwing an error.

Categories : Vbscript

Why CSS and JS files are not loaded when using IP address instead of localhost
And also your base_url should be given like $config['base_url']='http://MYIP/PROJ_FOLDER/'; and then try like <style type="text/css" src="<?php echo base_url();?>css/validate/screen.css"></style>

Categories : PHP

403 Forbidden error when accessing localhost on Mac OS X10.8
To fix that issue check this link http://www.coolestguidesontheplanet.com/downtown/how-set-virtual-hosts-apache-mac-osx-109-mavericks-and-osx-108-mountain-lion read the "Losing Localhost" part. The error occurs just after you enable vhosts in the httpd.conf file. By uncommenting this line: Include /private/etc/apache2/extra/httpd-vhosts.conf Adding this in the httpd-vhosts.conf will fix your issue. Just remember to add new vhosts before this one :D <VirtualHost *:80> ServerName localhost DocumentRoot /Library/WebServer/Documents/ </VirtualHost> I hope this solves your problem!

Categories : Apache

Using IP address instead of 'localhost' as hostname in mysqli connection
Is it just as secure to use my hosting accounts IP address instead of localhost when I connect to the database via my mysqli connection below? No. See the documentation: All other information is transferred as text, and can be read by anyone who is able to watch the connection. If the connection between the client and the server goes through an untrusted network Would the speed of connection be dramatically affected at all? Since you are getting the data from a computer at a remote site instead of locally — yes, it will. local website testing enviroment (xampp). This takes ages and I just thought it may be a better idea to connect directly to the live database Risking your live data by exposing it to your test code is a very bad idea.

Categories : PHP

Windows Authentication not working for localhost address in IIS 7.5
If you are using Internet Explorer and typing your user name and password in manually will allow you to log in, you can just add the site's hostname into your intranet zone. Otherwise you may be running into the loopback check issue. This can be resolved by adding the hostname into a registry key and restarting the IIS Admin service. You can find the details of how to do this here: http://support.microsoft.com/kb/896861 The article says IIS 5.1 and above but the steps are still relevant.

Categories : Iis

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

Difference between tunneling to localhost and sharing IP address
Because your IP is not public, most likely you are behind a router and have a private IP address. Also, your server is started on localhost in the development environment which is essentially inaccessible from the internet. You can achieve something similar to using tunnelling if you setup port forwarding on your router.

Categories : Ruby On Rails

Error due to difference between localhost and local IP address
Look for host file at the following location on your system: C:WINDOWSsystem32driversetc in that change the mapping of localhost (by default it would be 127.0.0.1). Change it to map to your IP. Then set up the you website in IIS server as per IP address. Hope this helps.

Categories : Asp Net

Can WCF endpoint address config use 'localhost' when client is Java on another host?
Check this out: http://msdn.microsoft.com/en-us/library/ee816894.aspx Also what happens if you do not add base address at all? Note that the problem you experience is just in the import process. The runtime will work fine. So you could have the java client do the import from a fixed url (or local wsdl file).

Categories : Wcf

setup git push/pull to localhost without public IP address in a ssh session
If localhost doesn't have a public IP address, you won't be able to connect to it from the remote machine. You must initiate all commands (e.g. git push, git pull, git fetch from localhost, otherwise it won't work.

Categories : GIT

Client can connect to Server on same machine using localhost, but not when IP Address or hostname is used
Usually when you set up a server, you need to specify the hostname or IP the server listens on. When you initialize a server to use localhost, you can only use localhost to connect to it. If you want a server to accept requests from every source you need to see if you can use a wildcard to accept all connections. For example 0.0.0.0 is used a lot.

Categories : C#

Is it possible to address localhost from linux ubuntu to a virtualbox virtual machine
In the default network configuration (NAT) for VirtualBox you can accesss the host machine with the IP 10.0.2.2, so in the browser you would use that instead of localhost. (I can't find this in the official documentation though?)

Categories : Linux

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

Chrome issue : Enable/Disable sorting on columns fails in chrome in GWT
The issue is resolved by deferring redrawHeaders() call Scheduler.get().scheduleDeferred(new ScheduledCommand() { @Override public void execute() { _table.redrawHeaders(); } }); }

Categories : Gwt

able to run my backbone js project on localhost,not able to run locally in chrome browser
I assume that you have ajax requests to sync the Backbone Models with the server, and when you say "on localhost" you mean "with a server running on my localhost and my browser connects to 127.0.0.1:<someport>", and when you say, "run index.html directly" you mean "launch it in the browser as file://path/to/index.html, correct? If I recall correctly, Chrome does not allow you to access file: URLs via ajax as if they were network requests. Firefox did that for some release (cannot recall which at the moment), but there was pushback, it was made an option, then they reenabled it (based on my recollection). Just run it with a server locally, using nodejs or thin or whatever language your server is written in.

Categories : Javascript

Hadoop Mapreduce tasktrackers keep ignoring HADOOP_CLASSPATH. Zookeeper trying to connect to localhost rather than cluster address
if you made java programming: conf.set("hbase.zookeeper.quorum", "server1,server2,server3"); conf.set("hbase.zookeeper.property.clientPort", "2181"); if you used command:add -Dhbase.zookeeper.quorum sudo hadoop jar /opt/cloudera/parcels/CDH-4.3.0-1.cdh4.3.0.p0.22/lib/hbase/hbase.jar rowcounter -Dhbase.zookeeper.quorum=server1,server2,server3 hly_temp

Categories : Hadoop

Can't load localhost in Chrome after enabling Intranet Browsing in IE10
See: Enabling Intranet Browsing for IE10. Switch Off Enhanced Protected Mode Enhanced Protected Mode should not be enabled by default; it uses 64-bit content processes and disables various controls. If necessary, switch it off in the Cog/Tools > Internet Options > Advanced > Security section [...] then: Assuming you’ve enabled intranet browsing, click the Security tab followed by the “Local intranet” icon. Ensure “Enable Protected Mode” is unchecked [...] Configure Your Intranet Mode Add Local Addresses If the automatic detection of local addresses doesn't work, manually add the local addresses that should be part of your intranet network (so, for you, localhost, 127.0.0.1, etc... Feels silly, eh? Disable the Compatibility View By default, IE enables Compatibi

Categories : Google Chrome

Block localhost quickly in Chrome for testing AJAX failures
A Chrome extension that uses chrome.webRequest to block requests to localhost could work. The extension's manifest.json file could look something like this: { "name": "localhost blocker", "background": { "scripts": ["background.js"], "persistent": true }, "permissions": [ "webRequest", "webRequestBlocking", "<all_urls>" ] } And your background.js file could be: chrome.webRequest.onBeforeRequest.addListener( function(details) { return {cancel: true}; }, {urls: ["*://localhost/*"]}, ["blocking"] );

Categories : Ajax

Accessing data from an address
The reason you're getting the compiler error is that the . operator binds more tightly than the * operator, so when you write *((struct meta*) (ptr - sizeof(m61_meta))).size; You're trying to take the size member of a pointer. You probably mean (*((struct meta*) (ptr - sizeof(m61_meta)))).size; After that, I have no clue what your code is trying to do, but we'll deal with one bug at a time. It's almost certainly a mistake to do ptr - sizeof(..., because pointer arithmetic is already scaled by the size of what's pointed to, so you'll end up skipping over a whole bunch of structures, not just one. Second, you've allocated space for a structure, but not copied anything into it. I'm sure there are more problems.

Categories : C

Segmentation fault on accessing raspberry pi's gpio address
The example you are following is for standalone ("bare metal") software running directly on the hardware, and you are attempting to run it under Linux. The kernel memory management correctly prevents you from attempting to access something that is not mapped into the process memory space. If you check the return value of your sudo command, you will find that it still returns 139 (segmentation fault). One way to achieve what you are attempting is by writing a kernel driver. But a more practical one might be to make use of one of the software libraries already available for Linux on the raspberry pi. For example something like (random search, haven't used it) WiringPi.

Categories : Assembly

HTML + CSS issue, Chrome/Safari vs Firefox text positioning issue
Add the following CSS to the container div: vertical-align: middle; display: table-cell; Example: <div style="vertical-align: middle; display: table-cell; height: 500px; width: 400px; border: 1px solid black;"> <div id="header-social-icons"><a href="http://test">C</a><a href="http://test">M</a><a href="http://test">F</a></div> <div>

Categories : HTML

How can I solve my localhost issue on mac?
Here: POST localhost:9000/data/customer.json 404 (Not Found) failed You should know, when using HTTP request, PHP server expects to get existing file and transfer it to client (if this file has .php extension - execute script and send stdout). Also PHP allows you to do internal redirection via .htaccess file configuration. For example: (1)ErrorDocument 404 /path-to-file (if requested file was not found on server) (2)ErrorDocument 403 /path-to-file (if requested file was found on server but it was forbidden for direct access) I suggest you to use the both methods. Create an .htaccess file on /data/ with this content: deny from all ErrorDocument 403 /data-manager.php ErrorDocument 404 /data-manager.php Create 'data-manager.php' right on top directory ('public-html'). And via php scr

Categories : Javascript

Is it neccessary to use volatile keyword when directly accessing physical address?
Is there any means that the contents at this physical address can be changed without the compiler knowing about it (when the compiler is only inspecting your local code)? If yes, then you must use the volatile keyword -- otherwise you cannot be certain the compiler will actually read the memory. For physical addresses which are, for example, device registers, you do want to use the volatile keyword.

Categories : C

How to fix Ubuntu Forbidden issue on localhost?
The /var/www folder needs to be readable by the www-data system account. Try this : sudo chown -R www-data:www-data /var/www Edit : as noted by Joachim Isaksson, that was a quick fix to the problem. A more secure way of setting up the permissions would look like : sudo chown -R krishna:www-data /var/www sudo chmod -R 755 /var/www You might need to give write access to www-data at some point though, for example to enable file uploads to your server. It's best if you can keep this to a dedicated directory in your website tree.

Categories : PHP

XAMPP localhost issue with mysql
go to your xampp folder directory : xampp/htdocs/ xampp/mysql.php you will find this code on the page: <?php if (@mysql_connect("localhost", "pma", "")) { echo "OK"; } else { echo "NOK"; } ?> so all you have to do is exchange the whole code with this below: <?php if (@mysql_connect("localhost", "pma", "")) { echo "OK"; } else { $err = mysql_errno(); if ((1044 == $err) || (1045 == $err) || (1130 == $err)) { echo "OK"; } else { echo "NOK"; } } ?> and there you have your error fixed in a jiffy!!

Categories : PHP

mobile IOS Google chrome address bar behaviour
Well, I found a way to work. <body style="overflow:hidden;"> <header style="width:auto;display:block;padding:12px;text-align:center;background-color:#1276c7;color:white;position:fixed;top:0;left:0;right:0;opacity:1;">FIXED HEADER</header> <div role="main" style="height:100%;overflow-y:scroll;padding:60px 0;box-sizing:border-box;-webkit-overflow-scrolling: touch;"> <article> ...(content)... </article> </div> </body> It appears that we need an inner scrollable element and remove overflow on body. I overthought it, it seems. Hope this helps someone.

Categories : IOS

Issue connecting to postgresql using pdo on localhost (08006)
See http://www.postgresql.org/docs/9.1/static/auth-methods.html: The ident authentication method works by obtaining the client's operating system user name from an ident server and using it as the allowed database user name (with an optional user name mapping) The ident authentication method is not really suited for connections from a web server, because the web processes run under a account, typically www-data or some such that has no relationship with the databases account (rockprofile in your case). Since you want authentication by password, replace this with md5 in pg_hba.conf and reload or restart PostgreSQL. Also you may change your password because it appears in clear in the trace, negating your substitution effort in the code.

Categories : PHP

Making header act like google chrome mobile app address bar
Prototype Using jQuery - Version 2 I worked on this problem again and made the action a lot smoother. The jQuery code looks like: init = { previousTop: 0, headerHeight: 52 } $(window).scroll(init,function () { var currentTop = $(window).scrollTop(); var scrollMax = $(document).height() - $(window).outerHeight(true); var bodyHeight = $(window).outerHeight(true); var scrollType = ""; if (currentTop < init.previousTop) { $(".offset b").text(currentTop); $(".offset em").text("Up"); scrollUp = true; } else { $(".offset b").text(currentTop); $(".offset em").text("Down"); scrollUp = false; } if (scrollUp == true) { $(".header").css({"color": "blue"}); $(".header").css({"

Categories : Jquery

hide mobile browser address bar on chrome (android)
Seems that the latest update of Chrome Mobile (July 22) broke the toolbar auto-hide feature. When scrolling down a page, the toolbar no longer auto-hides. This was the case on my Nexus 4. July 22 update brings full screen mode for tablets. But i guess they accidentally broke the feature for smartphones. Full screen mode was working previously on smartphones. Chrome Browser Play Store

Categories : Android

How to change font size of address bar in Chrome programmatically
Generally, the font size of the address bar is determined by your OS's default font size. Read comments here: https://code.google.com/p/chromium/issues/detail?id=46472. So if you want to adjust it, change your OS default. If you build your own version of Chrome, you can change the look and feel of the browser, but you'll have to write different code for each platform you want to support. If you don't want to build your own version of Chrome, then on Windows, you can inject yourself into the Chrome process with SetWindowsHook or SetWindowsHookEx, find the window handle corresponding to the address bar, and then do anything you want to it. Similar idea on OSX. Not sure about Linux. This isn't a recommended approach; it's invasive and subject to breakage. As far as a Chrome API for an exte

Categories : Google Chrome

Is it possible to display "Go to" in the right click menu of IE for text in the form of a web address like Chrome/Firefox do?
Internet Explorer doesn't easily allow you to do exactly this, as it would require running code as the context menu opens, and this is very complicated and not formally supported from the Native Code extension model. However, you CAN create a non-binary extension (called a Menu Extension) which has this general behavior. About a decade ago, I wrote such an extension called "Linkify and Open" which you can find here: http://www.bayden.com/ietoys/. The source code of the extension is written in HTML and can easily be examined in the IEToys program files folder. Also, note that in IE you can hit [CTRL+C, CTRL+SHIFT+L] to achieve a similar effect (CTRL+SHIFT+L is the "Go to the URL on the clipboard" shortcut).

Categories : Internet Explorer

Issue accessing Intercom API
I fixed this issue by myself modifying the code library httpCall function appending the code curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); just above the: $response = curl_exec($ch);. Cheers Anunay

Categories : PHP

Issue while accessing VPN url in UIWebView
You need to specify a username to use to log in as. Currently when connecting to your VPN you are defaulting to login (since it is in the webview) as anonymous, and since (I'm guessing) you don't have that user on your VPN it is coming up with an infinitely spinning icon. What you can do to fix this is to specify a username (and a password if you wish) using this format in the URL: http://username@hostname.com/ Which will then prompt you for a password; or do http://username:password@hostname.com/ if you want to specify the password.

Categories : Iphone

Android SMS originating address issue
Your users are talking about companies that change their Sender ID to an alphanumeric number. Some examples of this are when your carrier texts you (i.e. my carrier texts me from 'Vodafone'), or when my dentist texts me about my upcoming appointment from 'DENTIST'. Take a look at this answer for some info about how they do it: How do some SMS messages transmit the senders name? If your app sorts texts or something similar, I imagine that you could just filter them the same way you would a standard telephone number.

Categories : Android

Ajax address bar variable issue
If I'm understanding your question correctly, you can use the following: var qs = window.location.search; xmlhttp.open("GET","../profile/" + pageName + ".php" + qs,true); qs contains the query string for your current page's URL. So this will append all your current page's query string to your AJAX page's request.

Categories : Ajax

Email id address issue in c# code
You should use new mailaddress(); MailAddress from = new MailAddress("someone@something.com", "John Doe"); MailAddress to = new MailAddress("someoneelse@something.com", "Jane Doe"); MailMessage mail = new MailMessage(from, to); further reading here: http://msdn.microsoft.com/en-us/library/system.net.mail.mailaddress.aspx

Categories : C#



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