Running a server
I have programmed a simple chat room in dos using winsock. I have two programs, a client, and a server. The server accepts typed messages from any clients connected to it, and then sends out the message to all of the other clients connected to it. I was wondering how I can run the server on the internet, so that people from different computers can access it, and what the easiest way to do this is.
Once I figure this out, i will be able to continue programming my server so that I can play a boardgame online with friends.
A Mathematical game developed and played excessively by friends and I
Uh... punch a hole through your firewall?
I''m not sure what you mean. All you need to do is that the clients should be able to connect to some port on a machine available over the Internet. Which step do you have problems with?
I''m not sure what you mean. All you need to do is that the clients should be able to connect to some port on a machine available over the Internet. Which step do you have problems with?
Yeah, if your computer is directly on the internet, rather than connecting through the local network, simply connect to the computers internet IP address. There is nothing different between a local area network, and wide area network, except for a lot of machines are running firewalls that block people from accessing your computer. If that is the case, you will have to allow that port access from the outside.
Ok, I''m running the server off of my computer, and it accepts connections on some random server number, (I think its like 6483). My IP Address is dynamic, so I guess one way to do it would be to get a static IP address, but how would I go about doing this?
A Mathematical game developed and played excessively by friends and I
A Mathematical game developed and played excessively by friends and I
quote:
Original post by darkawakenings
Ok, I''m running the server off of my computer, and it accepts connections on some random server number, (I think its like 6483). My IP Address is dynamic, so I guess one way to do it would be to get a static IP address, but how would I go about doing this?
A Mathematical game developed and played excessively by friends and I
You don''t necessarily need a static ip address but it does make it more convenient. To get a static ip you''d have to contact your isp to see if you can get one. otherwise google for dynamic ip + webserver or something similar and there are sites that offer that service. like noip.com. I don''t know what you mean by server number but I suspect you are talking about a port number.
Well, R2D22U2..
Yes, I was talking about port number.
You said that their are other ways than having a static IP, what are they?
I checked out www.no-ip.com, and I am a little confused. All I want is to give my computer a static IP!
You said that their are other ways than having a static IP, what are they?
I checked out www.no-ip.com, and I am a little confused. All I want is to give my computer a static IP!
OK, I think That I understand It. I have setup a hostname at No-Ip.com,
(tictacjo.servegame.com) <-- or something like that.
And it is set to my dynamic IP Address, whenever my comp''s dynamic IP changes, the hostname gets updated with my new IP. I also have a server running over my computer listening on port 6483.
If I were to have a client application run on a different computer connected to the internet, and it were to try to send something across port 6483 to tictacjo.servegame.com, then my server would recieve that message, and i could make a connection, right?
I will be trying this tonight.
A Mathematical game developed and played excessively by friends and I
(tictacjo.servegame.com) <-- or something like that.
And it is set to my dynamic IP Address, whenever my comp''s dynamic IP changes, the hostname gets updated with my new IP. I also have a server running over my computer listening on port 6483.
If I were to have a client application run on a different computer connected to the internet, and it were to try to send something across port 6483 to tictacjo.servegame.com, then my server would recieve that message, and i could make a connection, right?
I will be trying this tonight.
A Mathematical game developed and played excessively by friends and I
quote:Yes. As I figure it, you already has the server and client working locally. All you need for the client to do is to connect to the remote machine instead, through and IP or hostname. I suggest that when you test the client, you use your IP rather than hostname, to see if that work (if it doesn''t, the hostname won''t either, but not necessarily the other way around).
Original post by darkawakenings
If I were to have a client application run on a different computer connected to the internet, and it were to try to send something across port 6483 to tictacjo.servegame.com, then my server would recieve that message, and i could make a connection, right?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement