Skip to main content
Share Your Experience: Take the 2024 Developer Survey
10 votes
Accepted

Can I identify my PI by domain name in a LAN?

Unless you disable it (i.e. by default), Raspbian is running a service called Avahi which responds to mDNS requests in your local network. By default machines are configured to appear in .local ...
techraf's user avatar
  • 4,329
7 votes

How do you change the SSH port number?

If you are looking for a procedure to change the SSH default port to another port number like 2222, check the SSH config file which is located on /etc/ssh/sshd_config. sudo nano /etc/ssh/...
M. Rostami's user avatar
  • 4,333
4 votes
Accepted

Port forwarding raspberry pi

To do this you need the IP address of your Pi on your local network. You can get that with ifconfig on the command line. Let's say, for example, that it was 192.168.1.42. Then you want to forward ...
Brick's user avatar
  • 1,367
4 votes

Edit iptables to open a port the safest and easiest way (nano?)

The problem got solved by using the following commands: sudo apt-get install ufw sudo ufw allow 22 sudo ufw allow 8090 sudo ufw allow 8092 sudo ufw enable sudo reboot And everything was just fine. ...
MeebusJaximus's user avatar
4 votes

How do I SSH into my Pi at home from a remote location?

This is a combination of M. Rostami's answer and my reflections on his answer, which I found cumbersome to add as comments. NB: Your question shows you know how to find your public IP address and the ...
Bob Brown's user avatar
  • 1,037
3 votes

How to use SSH out of home network

This question is old, as time goes on there are fewer chances of you getting a public accessible IPv4-address. Most likely you are behind a CGNAT, meaning you share a single public IPv4 with other ...
Lenne's user avatar
  • 233
3 votes
Accepted

HOSTAPD & DNSMASQ Hotspot Port forwarding my PC

I have used: iptables --flush iptables --table nat --flush iptables --delete-chain iptables --table nat --delete-chain iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE ...
NufMeister's user avatar
3 votes

Iptables and reverse ssh tunnel to connect with IP camera

Why use iptables at all if you want a ssh reverse tunnel? Use ssh -g -f -N -T -R22222:192.168.1.192:80 [email protected] Assuming that 192.168.1.192:80 is the address of your camera and port 22222 is ...
RalfFriedl's user avatar
  • 2,188
3 votes

How do I SSH into my Pi at home from a remote location?

Port forwarded ~ 21 both TCP and UDP It's actually forward packets to port number 21 which is the default port of FTP. You must change it to port number 22 on your router/switch. If you are ...
M. Rostami's user avatar
  • 4,333
3 votes

How to use Raspberry Pi as server for python sockets without port forwarding

The solution could be: A service that resides on the internet. A service that resides behind a firewall where the firewall has ports exposed in to the service, aka "Port forwarding" uPNP. ...
Mats Karlsson's user avatar
3 votes

Open Port 1433 on Raspberry Pi

I run netstat -ano -p |find “1433” in command prompt but the error is No such file or directory. Yes, because find does not process data via standard input, and what find "1433" means is to ...
goldilocks's user avatar
  • 59.1k
2 votes

Vnc and Port Forwarding - Port and Display Number

From my experience when connecting to the PI you need to simply add the display number to the port number. For example when connecting to a VNC on display 1 you would use your.ip.goes.here:5901 (...
N.LeFevre's user avatar
2 votes

Port forward of Raspberry Pi 2 does not work

The Raspberry Pi won't be assigned an external looking IP. Your router, which is given an external IP address via your externally facing modem, passes any traffic on port 80 to the appropriate ...
selectstriker2's user avatar
2 votes
Accepted

Can't access motion cam on my raspberry pi from outside

Putting this as answer as can't add comment yet. Without being familiar with your router it looks to me like you are forwarding port 446, but also have triggers set for 446 and 6789. Have tried ...
Charemer's user avatar
  • 645
2 votes

Edit iptables to open a port the safest and easiest way (nano?)

Chain INPUT (policy ACCEPT) TARGET: Accept, PROT: tcp, OPT: --, SOURCE: anywhere, DESTINATION: anywhere, tcp dpt: 8092 Chain FORWARD (policy ACCEPT) Chain OUTPUT (policy ACCEPT) As per Steve's first ...
goldilocks's user avatar
  • 59.1k
2 votes

Port forwarding raspberry pi

The only port that matters is the internal ssh port and host. If you want to ssh into a machine on your LAN that has a LAN address of something like 192.168.5.5 ---- You would put that address in the ...
RubberStamp's user avatar
  • 1,409
2 votes

Confusion about Dynamic DNS (router vs Raspberry)

You can use the No-IP client on the Raspberry Pi, there is no need to configure DDNS on the router. Your Raspberry Pi does not need to know the router's IP address, it's your Dynamic DNS provider who ...
techraf's user avatar
  • 4,329
2 votes

Port Forward port 22 for Raspberry Pi 3 but port still closed

You could try a port translation in your router’s settings. Say port 22222 from any public IP mapped to port 22 on the Pi’s local IP. Pick any valid port number above 1024. 22222 is just too obvious ...
ArjenR's user avatar
  • 101
2 votes

How do I SSH into my Pi at home from a remote location?

First the ssh port is usually port 22 but it can be changed and secondly you only need tcp not udp. Another issue that can crop up is ensuring the pi will accept connections on port 22 from outside ...
Bra1n's user avatar
  • 1,251
2 votes

How do I SSH into my Pi at home from a remote location?

Provided that the SSH server at the PI is actually configured to listen on port 21 instead of the default 22, and that the network public IP address doesn't change. Then you should just SSH to the ...
Charemer's user avatar
  • 645
2 votes

Help with Port Forwarding for College Project

Assuming you are running everything local on the Raspberry Pi, you can connect the RaspberryPi which is connected to your college WiFi to your home computer, without hacking or opening your college ...
Mark's user avatar
  • 145
2 votes

Motion Port Forwarding for access over the internet

The motion package needs a couple of ports open, a web-control port and one or more streaming ports. It looks like the defaults are 8080 for web control and 8081, 8082, etc. for streaming. Port ...
Bob Brown's user avatar
  • 1,037
2 votes

How to correctly handle port forwarding so pivpn wireguard works. Next steps are pi-hole

That's a big project what you try to implement. This sort of questions does not fit very well to the format of this Q&A. You should split it in different detailed single questions. But I will try ...
Ingo's user avatar
  • 42.2k
2 votes

How to use Raspberry Pi as server for python sockets without port forwarding

I am not aware of any method of using sockets without port forwarding. A socket is bound to a port. If that port is on an external machine by definition you need port forwarding.
joan's user avatar
  • 71.1k
1 vote

How do I serve a webapp available on localhost to my local network?

Since Raspberry Pi is a general purpose Linux computer, many web servers such as NodeJS or Apache will serve HTML and REST services just fine over your local network. Choose the web server based on ...
OyaMist's user avatar
  • 1,119
1 vote

How to SSH Raspberry Pi from outside local network

Although there can be a variety of issues for port forwarding to fail, here are some possibilities: The router will ask for an external IP address. It seems that you put in your external IP address ...
Robert Pafford's user avatar
1 vote

Is it possible to create a web server like dataplicity.com or weaved for accessing port 80?

One way to make your RPi accessible from anywhere is to get yourself a public IP address from your Internet provider. You might need to pay for it, or it may be a free service. Then, depending on ...
Dmitry Grigoryev's user avatar
1 vote
Accepted

From "SSH: Permission denied, please try again" to realizing my RPi is running a non-ending process

What was going on is that I was being hacked: http://www.zdnet.com/article/linux-malware-enslaves-raspberry-pi-to-mine-cryptocurrency/ Never keep your default password!
Ivy's user avatar
  • 29
1 vote

Raspberry pi not listening on TCP port

It sounds like you have enabled port forwarding to your laptop's internal IP. Unless your laptop and PI are on the same IP address you would need to change the existing forward or add another to the ...
mintyfreshpenguin's user avatar
1 vote

Raspberry Pi outside local network - configure at home?

If you want to do this via port forwarding, then your colleagues will need to configure the router / firewall at the remote location. This may or may not be possible depending on a variety of factors, ...
Brick's user avatar
  • 1,367

Only top scored, non community-wiki answers of a minimum length are eligible