Forum > Networking and Web Programming

[SOLVED, THANKS FOR HELP] Port Forwarding Help

<< < (2/3) > >>

Jishaxe:
I realised your can't run two servers on the same port, I tried two at the same time and it bought up an exception.
I was planning to make several pairs of server/client applications, on the same port. But I'm not planning to run both servers at once.
So the server IP is the private IP on my machine?
Or am I not understanding things clearly?

OpenLieroXor:
Yes, the Server IP is the local address of machine which is running your server program.

--- Quote ---I was planning to make several pairs of server/client applications
--- End quote ---
- I'm not sure if you know that one server can be connected with more than one client, so you can listen to one port for all clients. Or I misunderstood you :P

Martin_fr:

--- Quote from: Joshuzzz on June 28, 2010, 09:41:22 pm ---I realised your can't run two servers on the same port, I tried two at the same time and it bought up an exception.
I was planning to make several pairs of server/client applications, on the same port. But I'm not planning to run both servers at once.

--- End quote ---

- If they are different servers, I would advice to use different ports.
- If it is one server for many clients, you only need one server. A single server app can accept many connections (all on the same port)


--- Quote from: Joshuzzz on June 28, 2010, 09:41:22 pm ---So the server IP is the private IP on my machine?
Or am I not understanding things clearly?

--- End quote ---

You are on an ADSL or other home internet connection, right?

- If you have a server in a hosting/data center, then there is no private IP. The serer has the public IP, and that's what you use.

- If it is your home PC and there is a router, then the router has the public IP and you must give that public IP to the client apps.
That is why the router will get the connection, and needs to forward it.

Jishaxe:
Sorry - I didn't explain myself well.
The pairs of applications do different things. Like, one could be a chatroom and the other could be a database or something.
Anyway.
Is it a requirement to get a static IP? Or is there another way to keep the client connected to the server?
Oh, and yes I use a home computer connected to a router.
In my application I use LNet.
Hangon, what if I use dynDNS? Would this work?

--- Code: ---

Clientt.Connect(http://www.hostnamecreatedbydyndns.dnsalais.com,port);



--- End code ---
Will this work?
Sorry about my scattered post, I'm tired...

OpenLieroXor:
Yes, you can connect to host by the DNS domain, including domains generated by DDNS. You enter the hostname like an IP address, as string.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version