How to change the webservers ip address for a specific website in firefox? - firefox

for webdev purposes, especially in the phase where websites gets moved from one to another server it's nice to be able to keep the website as is on the old host and setup the system with the production domain on the new host. For this it's nice to change the ip resolution for my own computer for the specific domain to the new webervers ip address.
Up until now that worked by editing the hosts file on Windows 10 or to use a small external dns service like a pi-hole. However that doesn't seem to work anymore. Is there any nice plugin with which I can step into the dns resolution of firefox to provide a new ip address when a specific domain is requested?

You can turn off DNS-over-HTTPS and revert to traditional DNS lookup:
Manually enabling and disabling DNS-over-HTTPS
You can enable or disable DoH in your Firefox connection settings:
In the Menu bar at the top of the screen, click Firefox and select Preferences.
In the General panel, scroll down to Network Settings and click the Settings… button.
In the dialog box that opens, scroll down to Enable DNS over HTTPS and select "Off"
Click OK to save your changes and close the box.

Related

Prevent blocking of appengine tests with Windows firewall

When running appengine tests with windows10 I continually get firewall popups. Since the origin path of the file making the call changes on every test I get popups everytime.
Is there a way to eliminate the firewall popups without fully disabling the firewall.
Yes, you can disable the popups. In the Windows Firewall control panel, go to Advanced Settings, then select Windows Firewall Properties.
For each relevant firewall profile, select Customize from the Settings box. Change the "Display a notification" option to "No".
(In a domain environment, you can also do this via group policy if you need to reconfigure many machines at once.)

Can only open https:// websites in OSX

I can't open non secure sites (any direction with hhtp://) . Only works in https sites.
I Tried the following with no results except in safe mode.
-Diferent browsers (Safari, Chrome, Firefox).
-Deleting Preferences and system configuration.
-Reboot in safe mode (Thats Works!!).
-Checking the proxies configuration (i haven't proxies)
-Changing the DNS.
-Turning off/on wifi.
-Repair directory permissions.
-Flushing DNS Cache.
-Reseting Router.
Anyone that can help me?. I am little desperate.
Thks in advance
Finally i solved the problem and it was very very strange.
I found the following " com.erythropoieic.net - preferences.plist " file under the "Library / LaunchDaemons / " folder. This file called this script " change_net_settings.sh " changing the network Properties. I removed that files and thew problem was solved.
I faced the same with all browsers on my macbook pro. This is a malware issue. Please run anti- malware clean up using the malwarebytes.
This is a frequent problem when updating Microsoft OS or Internet Explorer. Seems the update flips the LAN Connection setting, so:
Start Internet Explorer
Click on Setting (upper right)
Click the Tools button
Click on Internet Options
Click on Connections tab
Click on LAN settings
UNCHECK Proxy Server for your LAN
Select OKAY
Validate you can now get to websites without having to manually enter https://
I had the same issue in FireFox (45.X ESR) from Linux. I could only browse to sites if I used https://. If I used http:// or www:// I got redirected to dnssearch.com (my ISP is Time Warner). It turn's my issue was with how Firefox was configured to connect to the Internet. To resolve this issue in Firefox, click the open menu icon and select Options (or Preferences in older versions) and then select Advanced. On the Advanced page, click the Network tab. On the Network page, click Settings (For how Firefox connects to the internet). Under Configure Proxies to Access the internet, there a several radio buttons. In my case, the Manual proxy configuration was checked. I changed this and check: No proxy. This resolved my issue. I could then access any site as normal.

How to serve a local website (i.e. file://) from OS X to mobile devices?

As I edit some html/css files, I'd like to see not just how they appear on a mac (by pointing to file://) but also how they appear on a couple of mobile devices.
How do I launch from the OS X terminal a web server and point it to the root of the html pages? I'd much rather not have to go through the preferences menu and I'd much rather be able to point from the command line to any page rather than have to move whatever I'm writing to ~/Sites.
Also, I understand that there is a magical IP address starting with 192.168.x.y where each mobile device (connected to the same router as the mac) would see the pages. I'd appreciate understanding the list of useful x.y values, or a pointer to a good reference where they are defined.
If your site is running on localhost:8888 (or another port), you can access it from your device, assuming your connected on the same router, via your local Mac IP. You can find it into Settings > Network, then select your active connection on the left pane and see the IP Address field. Now on your device, access http://192.168.X.X:8888 and you should see your site running.
Another good option for development purpose is to use Chrome Web Inspector, that allows you to scale your screen to mobile and tablet devices by clicking the tablet icon on the top left corner of the inspector (refresh your page after having clicked). It also send the correct user-agent, very useful for most websites that don't care about responsive display but about other problematics too. You should see something like this:

Unable to access localhost from x-ms-webview

I have this code in my WinJS default.html:
<x-ms-webview src="http://localhost/"></x-ms-webview>
<x-ms-webview src="http://display/"></x-ms-webview>
<x-ms-webview src="http://192.168.1.2/"></x-ms-webview>
display is defined in the hosts file:
127.0.0.1 display
and 192.168.1.2 -- the one that is successful -- is another computer on the network.
This is in my appx.manifest:
display and localhost successfully load in IE on the desktop and metro.
My OS is Windows 8.1 Enterprise. I have also completely disabled the Windows Firewall and this has had no effect.
What else can I do?
Microsoft blocks connections to the local machine except while running from the Visual Studio debugger.[1]
There is, however, a workaround tool. Quoting from this post on an MSDN blog:
Immersive applications (and IE11 on the Desktop) run inside isolated processes known as “AppContainers.” By default, AppContainers are forbidden from sending network traffic to the local computer (loopback).
[...]
I have built a GUI tool that allows you to very easily reconfigure an AppContainer to enable loopback traffic. This tool requires Windows 8 and runs on the .NET Framework v4. When launched, the utility scans your computer’s AppContainers and displays them in a list view. Each entry has a checkbox to the left of it, indicating whether the AppContainer may send loopback traffic. You can toggle these checkboxes individually, or use the buttons at the top to set all of the checkboxes at once. Click Save Changes to commit the configuration changes you’ve made, or click Refresh to reload the current configuration settings.
The aforementioned standalone tool is available from here.

Why can't Visual Studio 2013 see the Remote Debugger running on my Surface?

I am trying to install and run my Windows Store app on a real Surface RT device. I have installed the Remote Debugger for ARM and its running, with no authentication on 4018.
Visual Studio fails to see the device, fails to connect and deploy.
In Windows on the desktop, I cannot ping and my port-query tool says 4018 is down, the host is unreachable.
What can I do? Why didn't they just use USB like Windows Phone development?
Microsoft don't tell you this, but you need to configure some firewall rules for the device to become visible on the network. Of course, you won't find anything by searching for "firewall" from the Start screen, but it can be found as a Snap-in for MMC.
You could turn the firewall off for the Private Profile, i.e. your local, private home network, since your home router already has a firewall and the one in Windows is just there to annoy people; cause family members to call and interrupt your dinner while they struggle to get things working on their budget new Windows 8 laptops (with no touch screen), or you could set the right rules manually.
However there's an easier way, turn on the oh-so-discoverable - especially on a tablet that's not even supposed to even have a desktop - "Network discovery and file sharing" by opening Windows (file) Explorer and clicking on the Network node on the left. A bar will pop up to remind you that Windows is getting in the way and that you can click it to make stuff work again; this configures the firewall for you.
Note that turning on "Network discovery..." via the option under Control Panel > Network Sharing Blah > Instantly-forgettable Name doesn't work. No one knows why.
By now you should be able to ping you device and the port is open, just in time for your battery to have gone flat.
Important Edit
Today, its not working again and pop-up doesn't appear again so I cannot try the same trick. My port query tool says the port is not open (it was the other day).
So I tried this, but its not working for me.
# Elevated Command Prompt #
netsh advfirewall firewall add rule name="RemoteDebugger" dir=in action=allow protocol=TCP port=4018
That says 'Ok.' but the port isn't open.
So I went into MMC and added the Firewall snap-in and its enabled itself again for the Private profile.
Then I noticed that it doesn't turn off. If you flip it to Off and hit Apply, it does nothing!!
There are now two inbound rules for the Remote Debugger, the one I setup and another for the executable. Still, doesn't work.
This thread:
http://answers.microsoft.com/en-us/windows/forum/windows_rt-networking/possible-windows-firewall-bug-on-surface-rt-blocks/caa8b40c-dacc-4d19-a751-7a04f8ef00e4
There's an answer stating:
Open Control Panel -> Administrative Tools -> Windows Firewall with Advanced Security.
Click "Windows Firewall Properties" in the main frame
In each of the three tabs of Domain, Private and Public Profile:
1) Note that: If you change "Firewall state", or change "Inbound connections" to "Allow" (inbound connections that do not match a rule are allowed), it is not going to work. The change is immediately lost after you click "OK" or "Apply" to close the dialog box.
2) What you need to do is: click Protected network connections: "Customize", it will show another dialog box, in which you can deselect some network connections. In this case, you can uncheck "Wireless" and leave "Bluetooth" on.
Once you finish step 3, Action Center will pop up an alert, saying Windows Firewall is off or not using recommended settings. You can ignore this alert, or turn it off in "Change Action Center settings".
Though someone on that thread confirm it had worked, it hasn't for me.
Luke

Resources