Forum > Networking and Web Programming

How to connect from Internet to local Mashine behind a router?

(1/6) > >>

Key-Real:
Hi,

I'm new at networking :)

I can start a synapse server.
When I listen local with my IP Server address, i can connect.
When I listen from my root-server(outside), which has an static IP address connected direct to the network card (same address from outside and which shown in ifconfig), i can connect.

Now I have following situation:
I wanna listen at home, I'm behind a router, so I have a different address of my router(internet, detected with https://whatismyipaddress.com/) and my machine(address detected with ifconfig).

who to listen in this scenario from home to get a connection from outside?

af0815:
A good idea is, to learn something about Security in Networking :-)

Open the port in your router and told NAT to forward the port can open a major security risk. Normal such things are handled best with "road warrior" configuration aka VPN connections.

birin:
What you describe is a classic situation.

You have to inform your router that communications for the port used by your server must be routed to the IP address of this server on your local network.

Look for the NAT mechanism (Network Adress Translation).

For example:
If the public address of your router is 100.100.100.100, that the local address of your server is 192.168.1.10 and the port used by your server software is 6950, you can create a NAT rule on your router to route communications arriving at 100.100.100.100 and port 6950 to local address 192.168.1.10 (and port 6950 too).

Key-Real:
Is it possible to configure this with my pascal program?

af0815:

--- Quote from: Key-Real on May 25, 2023, 11:51:14 am ---Is it possible to configure this with my pascal program?

--- End quote ---
This is configuration of your internet hardware (router), nothing to do with pascal.

Navigation

[0] Message Index

[#] Next page

Go to full version