I am setting a marathon/mesos dockerized network by distance.
the network setting is :
Laptop <-> internet <-> box (known IP) <-> Serveur (192.168.x.x : mesos/marathon)
From my laptop I can see mesos's interface :
Firefox : http://#box-IP:mesos-port
I can see slaves and tasks running : so things are pretty ok. But when clicking on a slave's Sandbox, I have the following errors :
Failed to connect to slave 'c1070c02-3754-4ae2-8ca0-1d0d2ec879e7-S22' on 'HP-xw8600-Workstation:5053'.
Potential reasons:
1) The slave's hostname, 'HP-xw8600-Workstation', is not accessible from your network
2) The slave's port, '5053', is not accessible from your network
3) The slave timed out or went offline
But if I do a [ssh -X] followed by a [firefox hhtp://192.168.X.X:mesos-port] and click on the slave's sandbox link, the message disappear, and I do see the slave's page.
So I conclude that issue (1) or (2) must be true... How could I set my laptop to allow access to these slave's pages ?
As usual, the answer is in the doc, or the given error ;)
The trick is to follow the error message, as following :
1) open the ports used by the slaves on the internet box (in my case : 5053)
2) add a line on your host file, with the name of the network pointing to the ip of the box (in my case : #boxIP HP-xw8600-Workstation)
That's should do it ;)
Related
So, for a while now I've noticed that whenever I'm trying to run a local server or anything, even if I choose a random port number, it still appears to be busy. For example, I tried running MySQL on 3036 and the logs clearly said
2021-05-19 17:20:51 0 [ERROR] Do you already have another mysqld server running on port: 3306 ?
2021-05-19 17:20:51 0 [ERROR] Aborting
But here's the thing, I open netstat and check what process is using the port but there's nothing running on that particular port.
enter image description here
I ran into the same issue with MySQL just now. The culprit was a vEthernet (WSL) ethernet device. After disabling it and rebooting, MySQL started again normally.
What worked for me is, in Device Manager, removing Hyper-V Virtual Ethernet Adapter (all of them), and then 'Disable device' on the physical network devices (e.g. ethernet and WiFi). After that it worked fine again, even with the physical network devices enabled again.
I started using devilbox (https://github.com/cytopia/devilbox) which gives me a great and really easy to setup LAMP server.
Following the docs for Windows Auto DNS, you should make 127.0.0.1 your default DNS of your "active network adapter". However:
Setting DNS in my Wireless Adapter works but leads to losing Internet Access when docker/devilbox isn't running (as the DNS Server isn't running at this point)
Setting it on vEthernet Adapter (Hyber-v Virtual Ethernet adapter, probably created by Docker) works too but resets itself upon restarting
Setting it within Docker > Dashbord > Settings has no effect at all (probably because it is only for within docker and not on the
host)
I can eighter set the alternate DNS in Solution 1 to e.g. 8.8.8.8 OR I have to edit DNS the vEthternet everytime I start devilbox. I therefore highly suspect that I'm missing something, and as the official docs are thin on this topic:
How can I setup Devilboxes DNS for Windows permanently?
I have a Winserver that’s viewable at http://172.16.xx.xxx in both Firefox, and Chrome on Windows 10.
I believe my firewall is fine, but I am happy to check if that's what's causing the issue.
check your firewall by telnet to the port 80 if your host machine (Machine A) ip name is 172.2.0.1 you should telnet to that IP from the other computer (Machine B) from CMD.
from Machine B do this.
telnet 172.2.0.1 80
if you found telnet is not and internal or external command in CMD try Following steps
if its giving a error then there is a firewall issue.
Since I am using a virtual machine, I was given a 172 address. This didn't seem to be accessible through the network.
Steps
Press control + E
Navigate to Network Adapter
Select Autodetect under Bridge Networking
This gave me a real IP address on the network, (192.xxx) and now it works!
I am trying to setup build servers, and a mac available for remote builds in VS. As results I have a Synology server setup with VPN enabled. The Firewall and all settings are setup according to the synology guide. I have then enabled port forwarding on my linksys WRT1900ACS router, for the three ports needed (500,1701,4500), which is also enabled in the firewall on the router. I then access the VPN locally without any issues, tried with different guides (guide1 guide2 guide3).
I then create copies of the vpn connection and inserting my static IP from my ISP. I logon to a tethered internet from my phone, as to ensure the network is different. I then get an error:
local l2tp connection attempt failed because the security layer encountered a processing error during initial negotiations.
Searching it seems like it is an error with the registry (reg 1 reg 2). Changing that just makes the vpn connection hang. What am I doing wrong? After waiting a long period of time (several minutes), the same error returns.
I have also tested on an Ipad using the settings defined in ios-settings.
For others the above guides solves the issue if you have a static IP. You however have to ensure that your ISP, have allowed the traffic, and that your router does not receive a double IP registration, rendering your static IP invalid.
which was the case for me.
I'm using XAMPP, on Mavericks, to simulate a localhost. I set jobeet.local, for example, as my vhosts. I tried to access it on my computer, it worked as well.
Now, I want to test my website on an IPad. So, I did the following steps:
Run XAMPP server on port 80, as usual
Connect the IPad to my wifi network.
Setup Http Proxy on Ipad, as picture showed below but change the port to 80
Now, I tested to access 127.0.0.1 via IPad. It worked! However, jobeet.local doesn't work.
I have searched and tried many ways to achieve this issue but they don't work.
Could you help me figure it out?
Thanks in advance.
You might have to update the hosts file.
The hosts file is a text file that maps hostnames to IP addresses.
Upon typing a url address on the browser, the system is checking if there is a relevant entry on the hosts file and gets the corresponding IP address, else it resolves the IP via the active connection’s DNS servers.
The hosts file can be edited to block certain hostnames (like ad-serving/malicious hosts), or used for web development purposes, i.e. to redirect domains to local addresses.
Editing the hosts file
Editing the hosts file in Mac OS X – Leopard, is a pretty easy task, especially if you are familiar with the terminal.
Step 1 – Open the Terminal.app
Either by start typing Terminal on the Spotlight, or by going into Applications -> Utilities -> Terminal.
Step 2 – Open the hosts file
Open the hosts by typing on the Terminal that you have just opened:
$ sudo nano /private/etc/hosts
Type your user password when prompted.
Step 3 – Edit the hosts file
The hosts file contains some comments (lines starting with the # symbol), as well as some default hostname mappings (e.g. 127.0.0.1 – localhost).
Simply append your new mappings underneath the default ones. Or edit one of the default values if you know what you are doing!
You can navigate the file using the arrow keys.
Step 4 – Save the hosts file
When done editing the hosts file, press control-o to save the file.
Press enter on the filename prompt, and control-x to exit the editor.
Step 5 – Flush the DNS cache
On Leopard you can issue a simple Terminal command to flush the DNS cache, and have your host file changes to take immediate effect:
$ dscacheutil -flushcache
You can now test your new mapping on the browser!
Hope this works for you!
I had to reinstall my setup today and made a step by step at that occasion:
I use a combination of Squidman and Mamp Pro (I assume it's similar to XAMPP)—hope this help anyone in their quest; happy to read feedback or get advice to make this better...
Squidman http://squidman.net/squidman/index.html
Mamp Pro http://www.mamp.info/en/mamp-pro/
on Squidman
- Preferences > General > Http port:
something different from the one MAMP is using (if map uses 80, then put 8080)
Preferences > Clients > Provide proxy service for:
insert the IP address or the subnet we will be catering for
Start Squidman
on MAMP:
setup the hostname, as well as the the website attached
insert the (local) IP address of the local machine
insert the port of Apache on the local machine
start Mamp; check that website is running correctly on local machine
on iPad/iPhone/mobile device
select the same wireless network as the laptop
in Wifi network > Preferences/Information: set a Manual HTTP Proxy
server IP is the (local) IP address of the Apache server, also running Squidman; port is the port used for Squidman
(Extra)
stuff to test: move dev server onto virtual machine (VirtualBox), to use with Node, custom PHP build, etc.
automate the setting: write pref for Squidman, Mamp/hostname, restart the Apache server, send configuration of proxy to mobile via iMessage or email.
I recommend using http://xip.io/. For example (taken from the website):
10.0.0.1.xip.io resolves to 10.0.0.1
www.10.0.0.1.xip.io resolves to 10.0.0.1
mysite.10.0.0.1.xip.io resolves to 10.0.0.1
foo.bar.10.0.0.1.xip.io resolves to 10.0.0.1
It does the job and you don't have to set anything up. I'm only pushing it because I am overly excited that I have wasted time trying over-engineered solutions.
On a mac you can use Squid on Windows that's Fiddler, however I'm having troubles with Fiddler and iPhone at the moment...