![]() ![]() ![]() ![]() Once it's running, you can then use "localhost" to see your server in your browser without putting it on the internet. In the guide, we talk about how to set up and run a WAMP server on your computer. You can see this in action in our guide on how to set up your own WAMP server. The server will load in your browser as if you had connected to it via the internet while also barring anyone else from peeking in on your work-in-progress. To do this, you can run the server on your computer, then connect to it using 127.0.0.1. Regardless of if you're using premade software or you're coding the server yourself, you may want to give it a "test run" to ensure it works before letting others connect. This is valuable when you're working with networking software and want to ensure everything runs smoothly before putting it on the internet.įor example, let's say you're setting up a server that you want others to connect to in the future. In your IPv4 case this might look like this: inetpton (AFINET, '127.0.0.1', &serAdd.sinaddr) If I changed INADDRANY to 127.0.0. In fact, it will allow you to access a server hosted on your PC as if you were looking at it via the internet. inetaddr ('127.0.0.1') or inetaton ('127.0.0.1', &serAdd.sinaddr) To support IPv6 or possible other upcoming address schema you want to really use inetpton ().
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |