Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I know this may not be possible. Here is my question. I have a domain. It is for my game server (Minecraft). I would like to be able to have my domain be typed in as example.com in both the game client and the browser url, and go to different places. In the browser, it would redirect to the website, and in the game client, it would redirect to the game server IP. I can give more clarification if needed. Thanks
This is possible already because the Minecraft server's socket is listening to a different port than an HTTP port.
You should be able to run a webserver and a Minecraft server without any modifications because HTTP listens on port 80 and Minecraft runs on port 25565.
NOTE:
If you are at home, then you will need to also set your router to allow port-forwarding for those two ports. Also, port 80 may become blocked by your ISP.
You can use a SRV record so game server requests go to one place and web requests go to another.
If you have control over the server that the domain name is forwarded to you can use. If you are using a linux server I would recommend IP Tables. Example of Port Forwarding with IP Tables
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
We have Front-End application(site) that is already exposed to the world with HTTPS+SSL certificate. So here we are ok.
When Front-End Site gets requests , then it sends to back-up application (Written on Java), that is sitting on the same server.
Do i need also to encrypt with SSL the data between the Front-End and Back-End that are actually on the same server?
Also, connection should be done with https or http between them? Or because we want to make it secure then it's better to do with https between all components in the chain
I think your problem could be abstracted into following questions:
Is your server secure ?
Is there any chance, in the future, you will scale up your application?
So, let's think about answers to these questions together.
Is your server secure?
If you have done things the way it should be, your server is supposed to be well-protected. If so, you don't need to secure the communication between fron and back end.
Will you scale up your application in the future ?
Hopefully you will have a lot of traffic for your application and will consider scaling up your application in the future. But do you really model the future right now? Possibly not.
Don't fix anything that ain't broken.
So, IMHO, you don't need to do anything at the moment.
EDIT:
There seems to be confusions around the terminologies used in the question. I assumed more than 1 micro-applications, one facing outward (front-end), and another one which is handling back end (back up??) operations. If you are confused FRONT-END with BACK-END as luk2302 suggested, this answer is not relevant at all.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I want to know if there is a way to host a LAN server on Android without using a third party library.
I want the solution to work without rooting the device.
I want to know if there is a way to host a LAN server on Android without using a third party library.
It is possible. You have to use Sockets and ServerSockets, Object[Input/Output]Stream(or a different way to send data). Basically design a server.
Here is an SO post on creating a server
Here is the Java documentation on servers
You can use third party libraries to make servers too(see the first link), and sometimes that may be easier.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I installed tomcat 7 and deployed a file consisting of html files.
When I access it in my laptop using localhost:8080/project it worked.
And also when I typed (my IP at that instance) 192.168.1.26:8080/project it also worked.
But when I access it from another laptop which is in the same network using 192.168.1.26:8080/project I mean internet protocol address it shows error and can not connect. I want to access the html files on the another laptop. Suggest me a solution.
Sometimes computer firewall blocks access - try this
The firewall can be configured by: choosing the Windows Firewall from the Control Panel, then click on Exceptions -> Add Port and enter name and number: Tomcat, 8080 and leave transport protocol as TCP
You need to set the Tomact to listen to your machine local ip address(ex. 192.168.0.3).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I am looking for a way to create a new VPN connection using only the command line. All I see in Google searches are how to connect to an existing VPN connection, which is through rasdial. Thanks.
You can try to use RAS API directly from Java.
If you want to create VPN connection from pure CMD, I'd try to append connection info to rasphone.pbk file in user's profile (%APPDATA%\Microsoft\Network\Connections\Pbk\rasphone.pbk).
For more ideas see How can I programmatically create a Windows VPN connection?
Cisco VPN can connect using the Command line.You can create your own script files that use the CLI commands to perform routine tasks, such as connect to a corporate server, run reports, and then disconnect from the server.
To display a list of all VPN Client commands, go to the directory that contains the VPN Client software, and enter the vpnclient command at the command-line prompt:
http://www.cisco.com/en/US/docs/security/vpn_client/cisco_vpn_client/vpn_client46/administration/guide/vcAch5.html
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
i've got a university project where i need to develop a peer to peer system in java for file sharing.
So in essence several users should be able to share files using the Peer to Peer System.
Can someone give me some guidelines about how to build this system??
For university project read some tutorial about sockets. I believe that this is what your professor is expecting from you. Take for example the following: http://www.oracle.com/technetwork/java/socket-140484.html
There are 2 general solutions: server-full and server-less. In case of server based solutions all your clients should be pre-configured with the server's IP address. Server opens server socket and starts listening. So, each client connects to server and registers. The registration is very simple: server just needs the client's IP. Now server holds a list of connected clients and sends the list to each client. To make peer2peer app each client opens server socket too. When client A wishes to connect to client B it just connects to its socket.
You can implement server-less solution. In this case you need some discovery mechanism based for example on broadcasting.
I hope this helps. Good luck.
You want to check JXTA. The site has moved to jxse.kenai.com. The practical JXTA II book has been made available for reading on Scribd.