Search code examples
c#tcpraspberry-pi3dyndns

Host server on Raspberry


Ive made a simple chat Program in c#. It uses tcp. I can start the server and clients can connect and chat if everyone is in the same network. I now want to put the server on my raspberry pi which has raspbian installed. So far so good it works and i can connect again if everyone is in the same network, but now i want to access the server over the internet as a private person cant geht their hands on an public static ip adress, ive read that i could use ddns. I have a host name on no-ip and installed noip2 on the raspberry and followed the instructions. On their site they write you can test it with the command sudo noip2 -S. It shows that it connected with my account and will update my hostname. In theory everything should be working, but i cannot connect to the server neither to the raspberry. Anyone of you knows what i can do to make it work or is it the completely wrong way?

Thanks in advance!


Solution

  • You could use dyndns together with cname. You would need to open port 80, 443 on your router. This implies risk for the other devices in your network.

    Instead of using rpi locally you could get a small virtual hosting server at AWS/Google for around 3$ per month.