Can i write a server for PC that connects with WIFI?
hello,
i need to write a server - client with wifi connection.
The server will be at the PC and the client is a mobile with android OS. Can i write it in java? if yes can you give a starting point please.
thanks
avicohen33 wrote:
thank's for the answer.
but i still don't understand how i configure that it's WIFI connection: i just open a socket on the server and the client is trying to connect to the server by its host name, ip by wifi itself. So the server don't care how the connection is established?Right. It doesn't care. You have a client and a server on your local WiFi network. Or maybe the client is in the WiFi and the server is out on the internet. Regardless, you write exactly the same code, and neither the client nor the server knows that there's WiFi involved. Just like when you talk on the phone, you don't know or care if you're talking over fiber or underground cables or above-ground cables or satellite, or some combination, similarly, at all the layers above the Link layer the networking code doesn't know or care what's underneath. Your app just opens a socket connection to an IP address.
The one case where it gets tricky, but your app still doesn't know the difference, is of the client is on the internet and your server is on your LAN. It has nothing to do with whether the LAN is WiFi, however. It's because you will most likely not have a public IP address, so you'll have to do port forwarding from your router (assuming it actually does have a public IP address, which is common in my experience, but not guaranteed).
Edited by: jverd on Apr 3, 2010 11:49 AM
Similar Messages
-
Can you make a app for texting that dont need wifi for iPod touch
Can you make a app for texting that dont need wifi for iPod touch
I don't think that even possible without any kind of connection
-
HT5361 IN OS 10 where can one find the folder for images that came with email?
IN OS 10 where can one find the folder for images that came with email?
I wish to delete the leftover image files to free up drive headroom.I checked in this place, no dice!
Home/Library/Mail Downloads, or
the system "Downloads" folder -
Creating Managed Server for Weblogic that comes with Oracle Service Bus
I've installed Oracle Service Bus 10.3.
Weblogic Server 10.3 comes bundled with OSB 10.3.
Everything is working fine in the Admin Server.
But when I create a Managed server and try to start it, I get the following exception and server doesn't start :
####<Nov 10, 2009 10:24:32 AM IST> <Critical> <Security> <iflmud6dlb5jn> <OSBManagedServer2> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1257828872747> <BEA-090403> <Authentication for user weblogic denied>
####<Nov 10, 2009 10:24:32 AM IST> <Critical> <WebLogicServer> <iflmud6dlb5jn> <OSBManagedServer2> <main> <<WLS Kernel>> <> <> <1257828872747> <BEA-000386> <Server subsystem failed. Reason: weblogic.security.SecurityInitializationException: Authentication for user weblogic denied
weblogic.security.SecurityInitializationException: Authentication for user weblogic denied
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(Unknown Source)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(Unknown Source)
at weblogic.security.service.SecurityServiceManager.initialize(Unknown Source)
at weblogic.security.SecurityService.start(SecurityService.java:141)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
I've tried changing the boot.properties file and given clear text username and password, but even this did not change the exception.
Are there any other security concerns that are to be taken care of while configuring Managed Server for Oracle Service Bus?
Kindly help.How are you starting the manageserver. Is it using command line or using NodeManager from Weblogic console of admin server. Most of the times we start managed server using yourDomain/bin/startManagedWebLogic.cmd (.sh).
startManagedWebLogic nameOfYourManagedServer adminURL(Ex: http://host:port).
If you created a managed server at the time of creation of domain itself using custom option, then under your domain root folder, you should see a file named like "startManagedWebLogic_readme.txt" that kind of gives the same above command.
If you added the managed server later on, to an existing single server domain, then you can use the above command.
Ravi Jegga -
I can't find a download for safari that works with my 10.7.5 OS
Trying to find a download that works with 10.7.5. Any suggestions?
You need to install Lion:
Reinstalling OS X Without Erasing the Drive
Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
Reinstalling OS X Without Erasing the Drive
Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
When the recovery menu appears select Disk Utility and press the Continue button. After Disk Utility loads select the Macintosh HD entry from the the left side list. Click on the First Aid tab, then click on the Repair Disk button. If Disk Utility reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit Disk Utility and return to the main menu.
Reinstall OS X: Select Reinstall OS X and click on the Continue button.
Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
Alternatively, see:
Reinstall OS X Without Erasing the Drive
Choose the version you have installed now:
OS X Lion- Reinstall Mac OS X
Note: You will need an active Internet connection. I suggest using Ethernet
if possible because it is three times faster than wireless. -
How can i host a server for assetto corsa
How can i host a server for assetto corsa with log me in ?We are like 5 friends, and we are on diffrent networks Pls Help, if this is possible that is
National Instruments also offers a web UI builder, and you can learn more about it here. This allows you to build a web-based user interface for your programs. I have never used it, but it says it can compile "the code into a Silverlight .XAP file, which can then be deployed to any web server for a user to invoke from a web browser". Maybe this could run on your web server.
-
Can anyone write a actionscript for flash project
Hi All,
Can anyone write a Actionscript for my project.
I want to develop my project with the flash.
My project scenario is, I have total no of 60 (.swf) flash
movies and are about to take 4 to 5 minutes each, my aim is to
display 20 .swf files randomly at a time on the screen.
i.e., if we click on a button for the first time, it should
display a 20 flash movies on the screen and when we click for the
second time it should display other set of 20 flash movies it may
or may not repeat the previous ones. It means every person should
be displayed with a different set of flash movies, no two persons
can get the same set of movies. The movies should be randomly
selected.
Could you please direct me to meet my scenario, could you
please write a script for my flash.
Thank you for your precious time.Ndippy,
Folks on here are pretty good about helping out others who
are trying to learn actionscript, or have trouble with
understanding concepts. They are less likely to volunteer to do an
entire project for you. I'd suggest trying to do it yourself, and
asking specific questions about the process. Both of your posts are
way to general to allow anyone to give advice that would be
worthwhile. You have said that you have 60 .swfs in your first
post. However, in your second, you said they were 60 quicktime
files. There are very different processes for each option there.
Are you planning to display 20 at once, or let people scroll
through them? What size are your clips and what size are you
developing for?
Start small, like just trying to load one movie clip
randomly, and then work your way up. Experiment with changing the
positions, sizes, etc. When you run into trouble, ask a specific
question about what you are trying to do, and people will be happy
to help. -
My iPod 5th gen. doesn't have a back camera. Can I trade it in for one that does have a back camera? If I can, can I keep all my pictures and have them switched over to the other one?
If you purchased it from Apple within the last 14 days then you can return it for a full refund. otherwise no. If you purchased it elsewhere you have to check with them.
Do this to transfer info
iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device -
Can't write cache file for while creating domain in soa 11.1.1.5 on HP-UX
Hi,
Installing SOA 11.1.1.5 on HP-UX and during domain creation/configuration I am getting the below errors
**sys-package-mgr: can't write cache file for**
and have lots of cache file errors for different packages
Any idea what might be wrong and whats the cause of these errors and is it safe to ignore these errors if not what is the work arround. As I already looked at the below post but I don't find */var/tmp/wlstTemp* on my machine as suggested in the post below.
SOA 11.1.1.5 install got can't write cache file
So wondering if there's anything else I can do i.e. while creating or configuring a Domain pass some parameter to config.sh etc.
ThanksHi,
I don't see python.cachedir in config.sh. Here is config.sh
#!/bin/sh
mypwd="`pwd`"
# Determine the location of this script...
# Note: this will not work if the script is sourced (. ./config.sh)
SCRIPTNAME=$0
case ${SCRIPTNAME} in
/*) SCRIPTPATH=`dirname "${SCRIPTNAME}"` ;;
*) SCRIPTPATH=`dirname "${mypwd}/${SCRIPTNAME}"` ;;
esac
# Set the ORACLE_HOME relative to this script...
ORACLE_HOME=`cd "${SCRIPTPATH}/../.." ; pwd`
export ORACLE_HOME
# Set the MW_HOME relative to the ORACLE_HOME...
MW_HOME=`cd "${ORACLE_HOME}/.." ; pwd`
export MW_HOME
# Set the home directories...
. "${SCRIPTPATH}/setHomeDirs.sh"
# Set the config jvm args...
CONFIG_JVM_ARGS="${CONFIG_JVM_ARGS} -DCOMMON_COMPONENTS_HOME='${COMMON_COMPONENTS_HOME}'"
export CONFIG_JVM_ARGS
# Delegate to the main script...
"${WL_HOME}/common/bin/config.sh" "$@"Thanks -
How can we write the code for opening the command prompt and closing the
how can we write the code in java for opening the command prompt and closing the cmd prompt from eclipse (cmd prompt should close when click on the turminate button in eclipse)
rakeshsikha wrote:
how can we write the code for opening the command prompt and closing theBy typing in Eclipse (which you seemingly have)? -
Can I write Design-time for JSP custom tag(not JSF components)
I have some old JSP custom tags(not JSF components), and I want to use them in the IDE through the toolbox.
Now I have already written the BeanInfos for these tags, and they can be drag from the toolbox; but it will throw a Exception when render the tags, and the properties in the Property Editor are not which I describe in the BeanInfos.
How can I write Design-time for these tags? or whether it is possible to write the Design-time for these tags?
the Exception is shown as follow:
java.lang.ClassCastException
at com.sun.rave.insync.faces.FacesPageUnit.renderNode(FacesPageUnit.java:1347)
[catch] at com.sun.rave.insync.faces.FacesPageUnit.renderBean(FacesPageUnit.java:1086)
at com.sun.rave.insync.faces.FacesPageUnit.getFacesRenderTree(FacesPageUnit.java:993)
at com.sun.rave.css2.FacesSupport.getFacesHtml(FacesSupport.java:152)
at com.sun.rave.css2.CssContainerBox.addNode(CssContainerBox.java:373)
at com.sun.rave.css2.CssContainerBox.createChildren(CssContainerBox.java:354)
at com.sun.rave.css2.DocumentBox.createChildren(DocumentBox.java:90)
at com.sun.rave.css2.DocumentBox.relayout(DocumentBox.java:160)
at com.sun.rave.css2.PageBox.layout(PageBox.java:392)
at com.sun.rave.css2.PageBox.relayout(PageBox.java:454)
at com.sun.rave.css2.DocumentBox.redoLayout(DocumentBox.java:313)
at com.sun.rave.css2.PageBox.redoLayout(PageBox.java:460)
at com.sun.rave.css2.DocumentBox.changed(DocumentBox.java:634)
at com.sun.rave.designer.DesignerPaneUI$UpdateHandler.changedUpdate(DesignerPaneUI.java:1012)
at com.sun.rave.text.Document.fireChangedUpdate(Document.java:851)
at com.sun.rave.text.Document$5.run(Document.java:631)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)I have some old JSP custom tags(not JSF components), and I want to use them in the IDE through the toolbox.
Now I have already written the BeanInfos for these tags, and they can be drag from the toolbox; but it will throw a Exception when render the tags, and the properties in the Property Editor are not which I describe in the BeanInfos.
How can I write Design-time for these tags? or whether it is possible to write the Design-time for these tags?
the Exception is shown as follow:
java.lang.ClassCastException
at com.sun.rave.insync.faces.FacesPageUnit.renderNode(FacesPageUnit.java:1347)
[catch] at com.sun.rave.insync.faces.FacesPageUnit.renderBean(FacesPageUnit.java:1086)
at com.sun.rave.insync.faces.FacesPageUnit.getFacesRenderTree(FacesPageUnit.java:993)
at com.sun.rave.css2.FacesSupport.getFacesHtml(FacesSupport.java:152)
at com.sun.rave.css2.CssContainerBox.addNode(CssContainerBox.java:373)
at com.sun.rave.css2.CssContainerBox.createChildren(CssContainerBox.java:354)
at com.sun.rave.css2.DocumentBox.createChildren(DocumentBox.java:90)
at com.sun.rave.css2.DocumentBox.relayout(DocumentBox.java:160)
at com.sun.rave.css2.PageBox.layout(PageBox.java:392)
at com.sun.rave.css2.PageBox.relayout(PageBox.java:454)
at com.sun.rave.css2.DocumentBox.redoLayout(DocumentBox.java:313)
at com.sun.rave.css2.PageBox.redoLayout(PageBox.java:460)
at com.sun.rave.css2.DocumentBox.changed(DocumentBox.java:634)
at com.sun.rave.designer.DesignerPaneUI$UpdateHandler.changedUpdate(DesignerPaneUI.java:1012)
at com.sun.rave.text.Document.fireChangedUpdate(Document.java:851)
at com.sun.rave.text.Document$5.run(Document.java:631)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100) -
I have an old apple desktop that needs an OS. Where can I get an OS for this that mac?
What type on machine is it?
-
How can i write the trigger for Global Temporary Table
Hi Grus,
How can i write the trigger for Global Temporary Table.
I was created the GTT with trigger using the below script .
CREATE GLOBAL TEMPORARY TABLE GLOBAL_TEMP
EMP_C_NAME VARCHAR2(20 BYTE)
ON COMMIT PRESERVE ROWS;
CREATE OR REPLACE TRIGGER TRI_GLOBAL_TEMP
BEFORE DELETE OR UPDATE OR INSERT
ON GLOBAL_TEMP
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
BEGIN
INSERT INTO EMPNAME VALUES (:OLD.EMP_C_NAME);
END;
trigger was create successfully, but the wouldn't insert into to EMPNAME Table..
Please guide whether am correct or not? if not kindly give a correct syntax with example
Thanks in Advance,
Arun M MBEGIN
INSERT INTO EMPNAME VALUES (:OLD.EMP_C_NAME);
END;
you are referencing old value in insert stmt.
BEGIN
INSERT INTO EMPNAME VALUES (:new.EMP_C_NAME);
END;then run ur application it works fine...
CREATE GLOBAL TEMPORARY TABLE GLOBAL_TEMP
EMP_C_NAME VARCHAR2(20 BYTE)
ON COMMIT PRESERVE ROWS;
CREATE OR REPLACE TRIGGER TRI_GLOBAL_TEMP
BEFORE DELETE OR UPDATE OR INSERT
ON GLOBAL_TEMP
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
BEGIN
dbms_output.put_line(:OLD.EMP_C_NAME||'yahoo');
INSERT INTO EMPNAME VALUES (:new.EMP_C_NAME);
dbms_output.put_line(:OLD.EMP_C_NAME);
END;
create table EMPNAME as select * from GLOBAL_TEMP where 1=2
insert into GLOBAL_TEMP values('fgfdgd');
commit;
select * from GLOBAL_TEMP;
select * from EMPNAME;
output:
1 rows inserted
commit succeeded.
EMP_C_NAME
fgfdgd
1 rows selected
EMP_C_NAME
fgfdgd
1 rows selectedgot it Arun
Edited by: OraclePLSQL on Dec 28, 2010 6:07 PM -
Can you build a battery for iphone that will last till the end of the day?
Can you build a battery for iphone that will last till the end of the day?
No, I can't. I've never taken any classes in either electrical or chemical engineering.
While you're looking for someone who can, you may want to try searching the forums for the many other threads that give tips on extending your battery life (things like turning off Background Refresh). You may also want to look at battery cases such as those made by Mophie.
Best of luck. -
Can I use the ac/usb charger that came with my iPad 4 for my Classic iPod 80GB?
Can I use the ac/usb charger that came with my iPad 4 for my Classic iPod 80GB? I think I can, but I'm too chicken to try. Thank you ahead of time,
MarkThanks for the quick reply.
Maybe you are looking for
-
Trouble with 7.0.1: Error message re:Quicktime.
Hi, Normally I'm okay with computers but I've tried everything that I can think of to fix this. I found these forums today and I'm thinking that I might just have to roll back to the sixth version of iTunes because it apears that wuite a few people a
-
Does anyone know how to change where incoming (via mail) calendar requests go on my MacBook? Mine insist on going to Entourage, which I don't use any more. I've tried setting the default calendar in iCal preferences. Doesn't help. Bugs me. Can you he
-
How can I clean up an outline image?
Hi there I have an outline image of 4 jigsaw pieces which are a little blurry and rough around the edges including some of the original color that was in the image. Can anyone suggest how or where I can read how to: a) select the outlines and clean t
-
ODI's CDC Support for MS SQL Server 2000
Hi, Does ODI provides CDC with log for MS SQL Server 2000? I read somewhere that we need to get a separately priced adapter for this because ODI supports only trigger based CDC for MS SQL Server 2000 and 2005. Could anyone please shed some light on t
-
How do I get a file with just my bookmarks in a readable and usable form?
I want a file with all my bookmarks, a file in html format or a file that I can have in a word document. I don't want to have to go through my entire bookmarks display, clicking on each one and copy/pasting the associated URL into a word document. I