|
-
August 5th, 2010, 05:39 AM
#1
How to get web service address on the computer
Hello everybody, it really a good forum (i'm new here)
I Have a little application that works with web service...
I want to know how can I get the web service address in my computer...
in other words,
instead of link the application to web service address on the server I want to link it with my computer address (something with my ip),
I tried http://my ip//service name and it doesnt works!
hope someone can help me!//
-
August 5th, 2010, 09:26 AM
#2
Re: How to get web service address on the computer
I assume the webservice is running on your local machine? try 'localhost' (http://localhost/service).
Whay IP did you use?
1. the local IP (mostly something like 192.161.1.x), which you can find using the command line -> ipconfig.
2. The IP that you use to the outside world you can get at http://whatismyipaddress.com/ (or on of the other 1000 sites they show you your IP).
If you want to use an IP, you need to use the first one (when you are in the local network).
-
August 5th, 2010, 10:31 AM
#3
Re: How to get web service address on the computer
I'll try to explain it more clearly.
I want to connect to the web service from the outside world...
it means that ther is a web service running in my local computer, and the clients that consuming this web service to be located in other computer,may be in other country...
I hope it more clearly!
thank you...
-
August 6th, 2010, 04:13 PM
#4
Re: How to get web service address on the computer
 Originally Posted by asaffff
I'll try to explain it more clearly.
I want to connect to the web service from the outside world...
it means that ther is a web service running in my local computer, and the clients that consuming this web service to be located in other computer,may be in other country...
I hope it more clearly!
thank you...
Option 2) in Danny's answer is what you need. Go up to the site and get your ip address. This is what the IP is for external users trying to access your web service.
Be aware that this may not work and the reason is that your internet provider probably is using dynamic IP addresses for your computer rather than static IP addresses. So today, you can go to http://whatismyipaddress.com and get an address and try it tomorrow and it would be different. If you want to host a web service, you need to contact your internet provider and have them assign you a static IP address.
-
August 8th, 2010, 01:50 PM
#5
Re: How to get web service address on the computer
Ok I got you,
but lets assume that my ip is 11.111.111.111
in this case what is the full address that I need to use in the client computer?(the one from the outside world)?
-
August 8th, 2010, 05:34 PM
#6
Re: How to get web service address on the computer
 Originally Posted by asaffff
Ok I got you,
but lets assume that my ip is 11.111.111.111
in this case what is the full address that I need to use in the client computer?(the one from the outside world)?
Is 11.111.111.111 the external IP provided by http://whatismyipaddress.com or the internal address?
At any rate, there could be several reasons this doesn't work.
The first thing to do is ping the ip from the external machine.
If that works, then see if you can connect to the web service from a client inside the intranet using the internal ip.
If that works, then replace the internal ip with the external ip. If it quits working perhaps you need to open up the firewall.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|