Xdragon
July 9th, 2010, 12:06
How to Host a Server via iTouch
NEW UPDATE: ITOUCH HOST A SUCCESS!
Only the registered members can see the link.
I have decided to post a tutorial on how to host a server via itouch while I sort out my excruciatingly frustrating problem with Apple. This tutorial is pretty simple, and I hope you have luck running it. Lets get started:
Part 1 - Prepping, Loading and Running the server - Difficulty 3/10 - Have knowledge of internet and your computer, as well as "tapping"
1 JailBroken iTouch with firmware 2.2.1 or higher
1 RSPS source code with everything compiled and ready to run
A Wireless Connection (Wifi, WLAN, etc..)
A Computer to test your server on
NOTE: This will not allow your browser to view any java based content (play java games online or...) this is merely a terminal based java VM which allows you to run Already compiled java files on your iPod; in other words you will need to transfer your ".class" files into your ipod and the run them..
- To get on your way first you'll need to add a new repository to your installer's "Sources":
- Open installer and go to "Sources" on the buttom far right of the screen
- Tap "Edit" on the top right corner and then "Add"
Click image for larger version Name: snap_013845.jpg Views: 250 Size: 57.3 KB ID: 1654
- Once the "Add source" pop up window appears type "Only the registered members can see the link." in the text field and tap OK
- Install the VM and the ClassPath
- Go to "Install" and scroll down to the "Java" category
Click image for larger version Name: snap_013932.jpg, Views: 131 Size: 44.3 KB ID: 1656
- Once there download GNU Classpath first and then the JavaVM
This section of the guide walks you through a very basic java application that will enable you to print out a message to the screen
- Download a java SDK from here and update you Environment variables to include the path to your java "bin" folder (I assume you are able to search the internet on how to do this if not ask here and I'll update the guide)
- Open a text editor of your choice and copy the following code over replacing MSG with a message of your own and save the file as "msg.java":
public class msg {
public static void main(String[] args) {
System.out.println("MSG");
}
}
- Open a command prompt window (by going to Start --> Run and typing CMD) navigate to where your file is saved and type "javac msg.java"
- You will notice that a msg.class is created in your working folder copy that to a folder on your ipod as a test run
Part 2: Running the compiled java files:
1 iTouch v2.2.1 or higher
Java .class files pre-loaded
A finger, maybe two
- Open a terminal on your ipod Term-vt100 is downloadable via the Installer
- Navigate to where your .class file is stored and type "java msg"
- You will have your message displayed on the screen if this test worked, if not, repeat the steps and find your error
Part 3: Setting up your iServer IP and getting players
1 Computer
Internet Connection
1 Router
iTouch
No-IP DUC (if you want to check your server via computer)
Now, in order to have players join your server, you gotta get your iTouch No-IP setup. From what I've theorized, all you need to do is determine your ipod's IP. I have done so for my by doing the following process of elimination: My desktop is ***.***.*.5, and my laptop is ***.***.*.6, and my laptop is the lastly registered wireless device registered on my router. So in theory, my iTouch would be ***.***.*.7. (Sorry for the confusing * just to keep it secure, trust me)
So what you do is log into No-IP, and create a new host with your IP address. Then go to your router, and do the usual server setup, only make sure that the IP the port foward will be running under will be ***.***.*.7 or whatever your ipod's IP is.
Now, go onto the terminal on your iTouch, and run the server:
java run
Go onto your computer, open a client (one with an IP-changer, unless you made a client for it already), and try to login.
So there you have it, how to run a server from an itouch. If I can get pictures of the server running and logging in, I will upload them asap.
~Seller
All credits to that guy !
Have fun whith this =]
NEW UPDATE: ITOUCH HOST A SUCCESS!
Only the registered members can see the link.
I have decided to post a tutorial on how to host a server via itouch while I sort out my excruciatingly frustrating problem with Apple. This tutorial is pretty simple, and I hope you have luck running it. Lets get started:
Part 1 - Prepping, Loading and Running the server - Difficulty 3/10 - Have knowledge of internet and your computer, as well as "tapping"
1 JailBroken iTouch with firmware 2.2.1 or higher
1 RSPS source code with everything compiled and ready to run
A Wireless Connection (Wifi, WLAN, etc..)
A Computer to test your server on
NOTE: This will not allow your browser to view any java based content (play java games online or...) this is merely a terminal based java VM which allows you to run Already compiled java files on your iPod; in other words you will need to transfer your ".class" files into your ipod and the run them..
- To get on your way first you'll need to add a new repository to your installer's "Sources":
- Open installer and go to "Sources" on the buttom far right of the screen
- Tap "Edit" on the top right corner and then "Add"
Click image for larger version Name: snap_013845.jpg Views: 250 Size: 57.3 KB ID: 1654
- Once the "Add source" pop up window appears type "Only the registered members can see the link." in the text field and tap OK
- Install the VM and the ClassPath
- Go to "Install" and scroll down to the "Java" category
Click image for larger version Name: snap_013932.jpg, Views: 131 Size: 44.3 KB ID: 1656
- Once there download GNU Classpath first and then the JavaVM
This section of the guide walks you through a very basic java application that will enable you to print out a message to the screen
- Download a java SDK from here and update you Environment variables to include the path to your java "bin" folder (I assume you are able to search the internet on how to do this if not ask here and I'll update the guide)
- Open a text editor of your choice and copy the following code over replacing MSG with a message of your own and save the file as "msg.java":
public class msg {
public static void main(String[] args) {
System.out.println("MSG");
}
}
- Open a command prompt window (by going to Start --> Run and typing CMD) navigate to where your file is saved and type "javac msg.java"
- You will notice that a msg.class is created in your working folder copy that to a folder on your ipod as a test run
Part 2: Running the compiled java files:
1 iTouch v2.2.1 or higher
Java .class files pre-loaded
A finger, maybe two
- Open a terminal on your ipod Term-vt100 is downloadable via the Installer
- Navigate to where your .class file is stored and type "java msg"
- You will have your message displayed on the screen if this test worked, if not, repeat the steps and find your error
Part 3: Setting up your iServer IP and getting players
1 Computer
Internet Connection
1 Router
iTouch
No-IP DUC (if you want to check your server via computer)
Now, in order to have players join your server, you gotta get your iTouch No-IP setup. From what I've theorized, all you need to do is determine your ipod's IP. I have done so for my by doing the following process of elimination: My desktop is ***.***.*.5, and my laptop is ***.***.*.6, and my laptop is the lastly registered wireless device registered on my router. So in theory, my iTouch would be ***.***.*.7. (Sorry for the confusing * just to keep it secure, trust me)
So what you do is log into No-IP, and create a new host with your IP address. Then go to your router, and do the usual server setup, only make sure that the IP the port foward will be running under will be ***.***.*.7 or whatever your ipod's IP is.
Now, go onto the terminal on your iTouch, and run the server:
java run
Go onto your computer, open a client (one with an IP-changer, unless you made a client for it already), and try to login.
So there you have it, how to run a server from an itouch. If I can get pictures of the server running and logging in, I will upload them asap.
~Seller
All credits to that guy !
Have fun whith this =]