I want to check remotely if a specific port is opened on a wifi router.
How can I do that?
Do I need to set something on the router side?
I tried using telnet but I get Unable to connect to remote host.
On ubuntu: sudo apt-get install nmap; nmap -vv <router-ip>
Scan with PortScan your Router-IP. Think this should work for you.
Switch scan type to "Scan All Ports". In this case I simply scanned the local host. Change localhost to your Router IP.
Related
firebase command firebase emulators:start all ports and hosts work fine on my pc but but if I try from different device in my network (ohter pc) to access network-ip:8080 I get connection refused.
This does not worked:
firebase.firestore().useEmulator("0.0.0.0", 8080);
But this worked:
firebase.firestore().useEmulator("192.168.x.x", 8080);
Why first one was not working but second one worked did not understand the reason behind this
0.0.0.0 is not a valid destination address for outgoing connections, such as those being made by the Firebase SDK to connect to the emulator. It is only a valid incoming address for services that want to listen on all possible IP addresses assign to the machine where it's running.
I recommend doing a web search for "ip address 0.0.0.0" to read more.
Are you sure that the port that you are trying to connect to is opened? I ran through the same issue with Ubuntu firewall blocking the request. If you are using Ubuntu use this command to open the port.
sudo ufw allow 9299
I want to bypass firewall on my network. So I want to know how I can find open ports on the firewall and tunnel all my traffic through it.
You can use nmap to check what port's are open.
If you are using linux,
apt-get install nmap
then
nmap localhost or IP that you want check it
I am trying connect the IP with putty, which is generated in cent OS
But that IP is not connecting in putty.
Please someone help regarding that.
Thank you.
-Ensure you have the right port forwarding rules set up on your VM and connect to the correct port.
-Make sure ONBOOT=yes on /etc/sysconfig/network-scripts/enp0sX file.
In this case you'd connect to port 2222.
How can I make two machines on a different network, connected to the same switch, communicate with each other?
in ubuntu you can use ssh command to communication.
for this install open-ssh server (follow this link)
https://help.ubuntu.com/community/SSH/OpenSSH/Configuring
then use sudo ssh user#IP Address
be sure that firewall is disable
if there is no DHCP server, you would have to configure the IP Adresses manually on the devices
I have Windows 10 as host with a Manjaro installation as Guest on Virtualbox.
I have set a Debian server on another house with ssh installed. I have setup a dyndns on Debian's network so I can access it remotely.
For example..
From address 12.34.56.78 I ssh to foo.dyndns.org:1234. This port redirects me to 192.168.1.5:22 always as this is my Debian machine and the connection is established. I am able to do this from Windows 10 as well as my android and any other device in 12.34.56.78 or by 3G.
But..
When I try to do this
$ ssh foo.dyndns.org:1234
from the Manjaro Guest in Virtualbox I get the following error:
ssh: Could not resolve hostname foo.dyndns.org:1234: Name or service not known
So I did ifconfig and I saw my inet address was 10.0.2.15. I changed virtualbox's network adapter from NAT to Bridged so I can get a lan ip and I got the host's ip, 192.168.2.4. So I gave it another try and still didn't work.
Also, if i try to connect from vm to server while I'm in the same network
$ ssh user#192.168.2.5:22
it works. In this case virtualbox's network adapter was NAT.
This command works if I try from my android (connectbot).
I can connect the same way from PuTTY from Windows.
So my questions are:
Can it be done?
If so, how? (and why?)
Can a VBox Guest get lan ip that's not the same as the host's?
Is there any more information I should provide?
I have searched for a couple of days in here and on google and all I found where solutions on how someone can ssh INTO a vm. No one (from what I saw) asked the opposite.
Checking manual page for ssh reveals the format of command-line options:
ssh [...] [-p port] [...] [user#]hostnamessh
This simply describes, that you need to change
ssh foo.dyndns.org:1234
to
ssh -p 1234 foo.dyndns.org
if the domain resolves correctly to the ip address.